I need to create a batch file to copy files that are reference in a Text file. I dont want to copy anything other than what is in the text file. I need it re-create the directory structure in the destination.
Here is what I have so far (that is not working).
for /F "delims=*" %%i in (C:\lists.txt) do echo F| xcopy /S /I /Y c:\folder\%%i "%%i"c:\bkup\
I have tried this as well but no luck
for /F %%a in (C:\lists.txt) do echo xcopy *.pdf /S /I /Y c:\bkup
Here is what I have so far (that is not working).
for /F "delims=*" %%i in (C:\lists.txt) do echo F| xcopy /S /I /Y c:\folder\%%i "%%i"c:\bkup\
I have tried this as well but no luck
for /F %%a in (C:\lists.txt) do echo xcopy *.pdf /S /I /Y c:\bkup