Dim ftp1 As New FtpClient ftp1.Host="www.bbc.net ftp1.Account = "ftp2" ftp1.Password = "2222" If ftp1.Upload("f:\图片","\upfile1\pic") = True Then Messagebox.show("上传完成!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information) Else Messagebox.show("上传失败!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)