复制远程主机文件到本地(Windows系统)

1. 与远程主机建立IPC连接

net use \\your_remote_ip\ipc$ "your_remote_password" /user:"your_remote_user_name"

2. 开启远程主机C盘共享

net use \\your_remote_ip\C$

3. 复制远程主机文件到本地 

copy \\your_remote_ip\C$\Apache2.2\logs\error.log C:\User\xxx


PS: 如果出现以下错误:

Multiple connections to a server or shared resource by the same user, using more than one user name are not allowed. Disconnect all previous connections to the server or shared resource and try again.

解决方法:

net use

用上面一行的命令去查看所有在本机进行的连接,找到跟出错IP相同的所有Remote,例如:

net use /delete \\your_remote_ip\C$
然后再重复上面的三步


  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值