Click here to Skip to main content
15,920,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to download all File With Folder from Ftp Server?
Praveen Kumar Upadhyay 8-Jan-15 2:17am    
You have to traverse through each files in that folder and download it individually. You can download the complete folder. What you can do is if you can zip the folder there then you can download the zip file.
Sergey Alexandrovich Kryukov 8-Jan-15 2:35am    
What's wrong with just reading original MSDN documentation on using FTP?
[no name] 8-Jan-15 3:42am    
zip your folder then download or download each file inside the folder individually

1 solution

Using the class System.Net.FtpWebRequest, first use the Method System.Net.WebRequestMethods.Ftp.ListDirectory to get the list of files, and then download each file using System.Net.WebRequestMethods.Ftp.DownloadFile.

Please see:[^],[^],[^].

Share this answer
Rahulgupta.hanu 9-Jan-15 8:46am    
how to create zip ftp Folder on ftp server through client pc and download that zip on client pc. in c# windows app
Sergey Alexandrovich Kryukov 9-Jan-15 10:53am    
What do you mean by "zip ftp folder"? If you mean ZIP file, it's not different from any other file. :-)
Rahulgupta.hanu 10-Jan-15 3:54am    
I Want to create zip file of ftp folder and download on my pc.
Sergey Alexandrovich Kryukov 10-Jan-15 6:06am    
You first download files (from your question, I can assume they are not ZIPed) first, one by one. Isn't that obvious? List all FTP operations and see what FTP can do. No zipping, anyway...
Rahulgupta.hanu 12-Jan-15 0:42am    
thanks for reply.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900