System.Net.Sockets Namespace (How do u select an entire ftp folder dir)

pinkpanther27

Member
Joined
Jun 7, 2004
Messages
11
Programming Experience
1-3
I would like to know how to either (select all files in an ftp directory) or obtain the filenames of all files in an ftp directory)and then download them

I am currently using System.Net.Sockets Namespace
Socket class for sending and receiving and I have no clue as to how to download all files within a folder without specfying the filename.

Any help is greatly appreciated :)

Thanks
Pink
 

Mykre

Active member
Joined
Jun 14, 2004
Messages
28
Location
Australia
Programming Experience
3-5
You are going to have to send normal FTP commands and wait for the responces from the server.

ie dir to get directory listing, and mget *.* to get all files. Please note these are just general commands, and there are a lot more that can be used.

Mykre
 
Top Bottom