How to transfer multiple files from FTP server to local directory using C#?
I can transfer one file from ftp server to local directory. using the following code using (WebClient ftpClient = new WebClient()) { ftpClient.Credentials = new System.Net.NetworkCredential("username", "password"); ftpClient.DownloadFile("ftp://website.com/abcd.docx", @"D:\\WestHam\test.docx"); but i don't know how to transfer multiple files. can anybody help me on this. } Cherry Use this code, just replace the user credentials: static void Main(string[] args) { FtpWebRequest ftpRequest = (FtpWebRequest)WebRequest.Create("ftp://mywebsite.com/"); ftpRequest.Credentials = new NetworkCredential(