Just want to ask, can you copy one entire directory to multiple destination?
Example
Source: "c:\MyProject\Sample\*.*"
Destination: "\\Computer1\Sample\"
"\\Computer2\Sample\"
"\\Computer3\Sample\"
"\\Computer4\Sample\"
I used this syntax to copy the entire directory
Example
Xcopy /E /Y “c:\MyProject\Sample*.*” “\Computer1\Sample\”
Now, Is there a way to loop through the following destination..? Do you have any suggestion on i can accomplish this scenario..?
Hope to hear from you soon..
Thanks,
Link
The above assumes you are using a batch file. If run from the command line, then use
%Dinstead of%%D. Also, the entire command can be put on one line, with spaces as path delimiters.