从任何FTP站点访问文件和文件夹 [英] Accessing files and folder from any FTP site

查看:90
本文介绍了从任何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 class System.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


这篇关于从任何FTP站点访问文件和文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆