复制远程主机文件到本地(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$
然后再重复上面的三步


你可能感兴趣的:(复制远程主机文件到本地(Windows系统))