以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  系统自带的ftp manager不能检索阿  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=77479)

--  作者:newsun2k
--  发布时间:2015/11/19 9:18:00
--  系统自带的ftp manager不能检索阿
如题,何解?
--  作者:大红袍
--  发布时间:2015/11/19 11:13:00
--  

呃,不能检索什么意思。截图说明


--  作者:newsun2k
--  发布时间:2015/11/19 12:10:00
--  
就是打开“远程文件管理器”,里面没有一个检索文件的按钮。


--  作者:大红袍
--  发布时间:2015/11/19 12:20:00
--  

汗,就是没有这个功能。

 

你如果要做,可以直接检索嘛 http://www.foxtable.com/help/topics/1410.htm

 


--  作者:newsun2k
--  发布时间:2015/11/19 14:15:00
--  
好的。
不知道有没有哪位大神自己做过自己的FTP manager,加一个检索的功能?

--  作者:大红袍
--  发布时间:2015/11/19 14:18:00
--  

一级目录的查找,如果要子文件也查询,就必须递归处理。

 

示例

例如列出photo目录下的所有文件:

Dim ftp1 As New FtpClient
Dim
fls As List(of String)
ftp1.Host=
"196.128.143.28"
ftp1
.Account = "foxuser"
ftp1
.Password = "138238110"
fls = ftp1.GetFileList(
"\\photo")
For Each
fl As String In fls
   
Output.Show(fl)
Next

还可以使用通配符,例如列出photo目录下的所有jpg文件:

Dim ftp1 As New FtpClient
Dim
fls As List(of String)
ftp1
.Host="196.128.143.28"
ftp1
.Account = "foxuser"
ftp1
.Password = "138238110"
fls = ftp1.GetFileList(
"\\photo\\*.jpg")
For Each
fl As String In fls
   
Output.Show(fl)
Next