
scp user@remotemachine:/remote/path /local/path
将远程linux主机上/remote/path的文件copy到本主机的/local/path目录
scp /local/path user@remotemachine:/remote/path
将本主机的/local/path目录copy到远程linux主机上/remote/path的文件
祝你成功!fileinfo
file
=
new
fileinfo("filepath1");
filecopyto("filepath2",true)
filepath1为服务器文件路径,可以为虚拟路径,如d:\atxt或\\computer1\book\atxt
filepath2为另一文件路径,如\\computer2\book\可以打开WIN2003的服务器共享,也可以在登录远程的时候,选择选项,本地资源,详细信息,点驱动器前面的加号,然后再点要共享到服务器的本地磁盘名称,打钩,然后确定,链接,
成功以后,就可以在服务器看到你的共享的硬盘,然后就可以向里面复制,粘贴,删除东西了
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)