写这段帮助的时候,我意外发现Rename还可以移动文件。例如将文件"jz.png"从photo目录移到到newkey目录:
Dim ftp1 As New FtpClientftp1.Host="196.128.143.28"ftp1.Account = "foxuser"ftp1.Password = "138238110"If ftp1.Rename("\photo\jz.png","\newkey\jz.png") Then Messagebox.show("移动文件成功!")End If