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\"
.
精彩评论