Multiple files downloading from ftp server
i need source code to download and upload multiple files from/to ftp server in c#..
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Lalit MRank #1,186 · 1.5K reputationPosted Jan 28, 2010, 2:23 AM EST
// create client, connect and log in Ftp client = new Ftp(); client.Connect("ftp.example.org"); client.Login("username", "password"); // upload the content of 'c:\data' directory and all subdirectories // to the '/wwwroot' directory at the server client.PutFiles(@"c:\data\*", "/wwwroot", FtpBatchTransferOptions.Recursive); // upload all '.html' files in 'c:\data' directory // to the '/wwwroot' directory at the server client.PutFiles(@"c:\data\*.html", "/wwwroot", FtpBatchTransferOptions.Default, FtpActionOnExistingFiles.OverwriteAll); // download the content of '/wwwroot' directory and all subdirectories // at the server to the 'c:\data' directory client.GetFiles("/wwwroot/*", @"c:\data", FtpBatchTransferOptions.Recursive); // download all '.html' files in 'c:\data' directory at the server // to the '/wwwroot' directory at the server client.GetFiles("/wwwroot/*.html", @"c:\data", FtpBatchTransferOptions.Default, FtpActionOnExistingFiles.OverwriteAll);Lalit MRank #1,186 · 1.5K reputationPosted Jan 28, 2010, 1:13 AM EST
http://www.codeproject.com/KB/IP/downloadFilesFromFTpServe.aspx
http://www.example-code.com/csharp/ftp_mgetFiles.asp
Jimmy Osmond4 reputationPosted Jun 20, 2010, 11:19 AM EDT