FOR /F "delims=" %%a IN (c:\backup\output.txt) DO COPY "%%a" "%destfolder%\%%~nxa"
The above takes output.txt which has hundreds of lines of filenames/paths that look like this
F:\active\C com\Drawings\oh Drawings\a100s\A101.bak
and then copies all the files into c:\backup
I now need to do the opposite, so take files, and put them back in the directory. So copy all files located in c:\backup, use the output.txt to tell it where to place each of the files.
To get my output.txt I did
xcopy f: /l /s /d:09-22-2014 > output.txt
So its a list of all files that have changed...
An ideal command would be xcopy f: /l /s /d:09-22-2014 > \\newserver\f_share\ - so have it copy all files newer than X and paste to a remote location (or mapped drive etc.)