【发布时间】:2013-06-04 17:34:17
【问题描述】:
有没有办法使用任何复制命令不使用网络使用,复制到需要凭据的文件夹的网络路径。
使用 xcopy 您可以跨网络路径实现目标,但我无法获取凭据
xcopy /E/R/K C:\folder\ \\XXX.XXX\folder\*.*
这是我尝试过的方法,但与其他类似的输入一起不起作用。
robocopy /e C:\folder\ "\\XXX.XXX\folder\ /user:name passwrd"
xcopy /E/R/K C:\folder\ "\\XXX.XXX\folder\*.* /user:name passwrd"
谢谢。
【问题讨论】:
-
使用了一种解决方法,它不会像映射到实际驱动器那样经常中断,只需使用 net use //xxx.x.x.x 并且不将其分配给带字母的驱动器。
标签: windows batch-file remote-access xcopy robocopy