从FTP服务器上下载多个文件 [英] Downloading multiple files from FTP server
本文介绍了从FTP服务器上下载多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个FTP server.I多个文件,不知道除了他们是所有这些文件的名称。 XML文件。
我如何以编程方式使用NET的的FtpWebRequest下载这些文件?
I've multiple files on a ftp server.I do not know the names of these files except that they are all. xml files. How do I programmatically download these files using .Net's FtpWebRequest?
感谢。
推荐答案
最有可能的,你必须发出DIR命令列出了所有的文件,然后通过每一个下载。
Most likely you'll have to issue a Dir command that lists out all the files, then go through each one downloading it.
下面是得到一个目录列表的一些信息。
Here is some info on getting a directory listing.
的 http://msdn.microsoft.com/en-us/library/ms229716.aspx
这篇关于从FTP服务器上下载多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文