command-linexcopy

saving multiple files through xcopy


i want to copy multiple files at once through xcopy. is it possible. i mean something like:
xcopy file1+file2+file3 destinationfolder
any help is appreciated :)


Solution

  • I don't think it's possible with a single xcopy, but you could use a for statement.
    Something like:
    for %f in (file1, file2, filen) do xcopy %f dest\