Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a Copy Batch File to reference a File

Status
Not open for further replies.

100mbs

MIS
Feb 14, 2002
142
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top