日期:2014-05-19  浏览次数:20910 次

远程文件复制
不用ftp,只想用file.copy()函数能否实现复制远程计算机上的文件。
要实现远程文件复制该如何操作。

------解决方案--------------------
映射网络驱动器
------解决方案--------------------
这样做不安全的。如果要用不采用ftp等这些方式,可能的话,最好通过windows认证的方式来做。
------解决方案--------------------
那个要目录共享
------解决方案--------------------
string OrignFile,NewFile;
OrignFile = Server.MapPath( ". ")+ "\\myText.txt ";
NewFile = Server.MapPath( ". ")+ "\\myTextCopy.txt ";
File.Copy(OrignFile,NewFile,true);