net use N: "\\10.100.1.163\xx\xx" password /user:username xcopy N:\xxx\xxx\* C:\xxx\xxx /Y /r /d /k /f /e /s net use * /del /y
如果记住过远程计算机的用户名密码
net use \\10.24.20.122\Cloud3.0Patch xcopy \\10.24.20.122\Cloud3.0Patch\* .\patchfiles\ /Y /r /d /k /f /e /s net use \\10.24.20.122\Cloud3.0Patch /del /Y