表Click 中写的。
Select Case e.Col.Name
Case "下载地址"
Dim Proc As New Process '定义一个新的Process
Dim aa As Row = Tables("文电").Current
Dim bb As String
bb = aa("上传文件")
Dim cc As String
cc = "http://10.19.23.146/ftp/UpLoadFile/" & bb & " "
Proc.File = cc '指定要打开的网页地址
Proc.Start()
End Select
想用FTP模式写~~
弹出对话框不会弄了 在哪里加
SaveFileDialog ?
Dim ftp As new FTPClient
ftp.Host = "10.10.10.10"
ftp.Account = "ddd"
ftp.Password = "ddd"
If ftp.Download("\UpLoadFile\" & bb & " ","c:\" & bb & " ") = True Then
Messagebox.show("下载完成!","提",MessageBoxButtons.OK,MessageBoxIcon.Information)
Else
Messagebox.show("下载失败!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If
[此贴子已经被作者于2015/7/28 15:43:56编辑过]