Tuesday, 30 September 2014

xcopy / robocopy specific files from a folder


use %% in a script or use % if running it interactively fromcommand line
the . at the end is 'copy to the current dir'

for %%g in ("\\servername\file1.txt", "\\servername\file2.bat") do xcopy %%g .

robocopy

No comments:

Post a Comment