Copy files Using a List

Home Forums Scripting DOS Command Shell Copy files Using a List

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    100mbs
    Member
    #154326

    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

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.