服务端
If FileSys.FileExists(ProjectPath & "Attachments\hlp\" & e.PostValues("gp")) = True Then
' MessageBox.Show(e.PostValues("gp"), "提示2")
e.WriteFile(ProjectPath & "Attachments\hlp\" & e.PostValues("gp"))
Else
MessageBox.Show("无照片", "提示3")
End If
客户端
Dim hlyzlxz As New HttpClient("http://192.1**.1**.1**:***/zz.htm")
Dim xzp As List(Of String)
xzp = Tables("hx_Table1").Current.DataRow.Lines("KK")
Dim ii As Integer
For i As Integer = 0 To xzgrzp.Count - 1
If FileSys.FileExists(ProjectPath & "Attachments\hlp\" & xzp (i)) = False Then
hlyzlxz.FormData.Add("gp" , xzp (i))
ii=i
End If
If hlyzlxz.GetFile(ProjectPath & "Attachments\hlp\" & xzp (ii)) Then
MessageBox.show("文件下载成功", "提示1")
Else
MessageBox.show("文件下载失败", "提示2")
End If