老兄,78M,也太大了吧?主要是这段代码,修改成这样了,你测试一下。
Dim ftp1 As New FtpClient
ftp1.Host="tangrenjie.net"
ftp1.Account = "ftp"
ftp1.Password = "zhengbe"
ftp1.UTF8 = True
For Each File As String In FileSys.GetFiles("d:\")
If ftp1.Upload(file, "upfile1\pic\" & "改成你想改的名字" & Rand.Next(10000),True) = False Then
Messagebox.show("上传失败!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
Return
End If
Dim f As Io.FileInfo = FileSys.GetFileInfo(File)
Dim r As Row = Tables("newmoo_product").AddNew
r("ppp") = f.Name
Next
Messagebox.show("上传完成!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)