先看这个简单的 代码如下:FTP ftp = new FTP(“192.168.1.117”, “ahuinan”, “123456”); string oldname = this.FileUpload1.PostedFile.FileName; string newname = dd + h + mm + ss + oldname.Substring(oldname.LastIndexOf(“.”)); // ftp.Connect(); ftp.OpenUpload(oldname,new