从任何FTP站点访问文件和文件夹
朋友,
我试图使用其相应端口从任何FTP站点访问文件和文件夹.
例如
输入:ftp://dreamincode:21/forums/topic/77912-ftp-download-delete/
从上面的FTP站点中,我需要解析该站点并访问论坛中可用的文件,然后将其检出.因此,我需要访问所有文件和文件夹,直到FTP站点URL结束.
文件可能是
* .log或* .doc这样的..
我不知道该怎么做,任何人都可以帮助我完成此操作...
预先感谢,
问候,
sasi
hi friends,
i am trying to access files and folders from any FTP site using its corresponding port.
for example
Input: ftp://dreamincode:21/forums/topic/77912-ftp-download-delete/
from the above FTP site, i need to parse that site and accessing the file which is avail in forums then check it out topic. so i need to access all files and folders till end of the FTP site URL.
files may be
*.log or *.doc like that..
I don''t know how to do it, any one can help me to complete this...
thanks in advance,
regards,
sasi
使用FileZilla或CuteFTP
Hi,
Using FileZilla or CuteFTP
^ ]
还有
此 [
Check this[^]
And
This[^]
请参阅我对Syed Salman Raza对解决方案的评论的评论-它"尚不清楚您想要什么.
这是C#中FTP服务器的实现: http://www.c-sharpcorner.com/UploadFile/psingh/FTPServerinCSharp11162005015958AM/FTPServerinCSharp.aspx [ http://msdn.microsoft.com/zh-cn/library/system.net.ftpwebrequest.aspx [
Please see my comment to your comment to the solution by Syed Salman Raza — it''s not quite clear what do you want.
This is the implementation of FTP server in C#: http://www.c-sharpcorner.com/UploadFile/psingh/FTPServerinCSharp11162005015958AM/FTPServerinCSharp.aspx[^].
If you only need to implement FTP client operations, this is very simple, use the classSystem.Net.FtpWebRequest
, see help page with code sample: http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx[^].
Optionally, if you already have some connectivity and program for both client and server side, you can simply add some custom file transfer method(s) to your network/remoting/WCF interfaces.—SA