开发者

Copy directory across domains using a batch file

I want to copy a directory from a PC in one domain to another using a batch file. I have used below net use command but it gives me an error saying "System error 53 has occured. The network path is not found".

@echo off

net use Z: "\\serverIP\SharedFolderName\" /user:domain2\te开发者_开发问答stuser 
xcopy "C:\Teset" "Z:\"

net use Z: /delete

Am I missing something ? Please help.


Drop the trailing \ in "\\serverIP\SharedFolderName\".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜