是否可以使用 File.Copy 将文件复制到 FTP?
Is it possible to copy files to a FTP using File.Copy?
是否可以使用 File.Copy 将文件复制到 FTP 服务器?
这就是我的想法:
try
{
File.Copy(@"C:/test.txt", @"myFTP URL");
MessageBox.Show("Copy Successfull.");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
布兰登是对的。使用 FtpWebRequest class 我能够上传文件。
是否可以使用 File.Copy 将文件复制到 FTP 服务器?
这就是我的想法:
try
{
File.Copy(@"C:/test.txt", @"myFTP URL");
MessageBox.Show("Copy Successfull.");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
布兰登是对的。使用 FtpWebRequest class 我能够上传文件。