copy file from server to localhost using ftp
-
dear all, i want to copy a file from server to localhost.in server my file is located in"D:\folder\myfile.txt".i want to copy/save that file int my localhost in"D:\myfile.txt".how can i do this using vb.net?please give me the code as soon as possible... by barani
-
dear all, i want to copy a file from server to localhost.in server my file is located in"D:\folder\myfile.txt".i want to copy/save that file int my localhost in"D:\myfile.txt".how can i do this using vb.net?please give me the code as soon as possible... by barani
Here is fast and dirty solution
using System.Net; ... ... WebClient webClient = new WebClient(); webClient.DownloadFile( "http://remotyeserver/myfile.txt", @"d:\myfile.txt" );
Do the same using ftp is more complicated - but this ftp library[^] can help DevIntelligence.com - My blog for .Net Developers