Dim ftp1 As new ftpclient
ftp1.host="192.168.0.248"
ftp1.Account = "ytxsp"
ftp1.password = "ytx820723"
Dim FileName As String
Dim FileLen As Integer
If e.node.Level = 1 Then '如果是二级节点
If not e.node.DataRow.Isnull("文件全名") Then
FileName =e.node.DataRow("文件全名")
FileLen=FileName.Length-2
FileName = "\" & FileName.SubString(2,FileLen)
End If
End If
MessageBox.Show(FileName)
If ftp1.Download(FileName,"c:\file\"& "Desert.doc") = True Then
Messagebox.show("下载完成!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
Else
Messagebox.show("下载失败!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If
提失下载失败 FileName 值为:"\A.doc",我的文件是放在FTP的根目录里,上传后文件列的字符是\\A.doc
请老师帮看下,谢谢
另外,浏览的代码是web.Navigate(FileName)?