Dim ftp1 As New FtpClient ftp1.Host="tang.net" ftp1.Account = "ftp1" ftp1.Password = "111"
For Each File As String In FileSys.GetFiles("\\Pc-server\图片\图片1") ftp1.upload(file, "/" & Filesys.getname(file),True) Next If Messagebox.show("上传完成!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information) Else Messagebox.show("上传失败!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information) End If