Help!List out FTP site root directory in ASP.NET (C#)

M

MurugesanP

I'm trying to list out all FTP site's root directory (path) from IIS using
C#(ASP.NET) code.
Can anyone please suggest me sample code in C#?

Thanks in advance.

Regards,
P.Murugesan
 
J

Juan T. Llibre

re:
!> I'm trying to list out all FTP site's root directory (path) from IIS using C#(ASP.NET) code.

Either WebRequestMethods.Ftp.ListDirectory
http://msdn.microsoft.com/en-us/library/system.net.webrequestmethods.ftp.listdirectory(VS.80).aspx

or WebRequestMethods.Ftp.ListDirectoryDetails
http://msdn.microsoft.com/en-us/lib...tmethods.ftp.listdirectorydetails(VS.80).aspx

....should get you what you want.

See the list of all members of WebRequestMethods.Ftp, here :

http://msdn.microsoft.com/en-us/library/system.net.webrequestmethods.ftp_members(VS.80).aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top