saving multiple files through xcopy

sushant picture sushant · Apr 8, 2010 · Viewed 17.7k times · Source

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 :)

Answer

Andrew picture Andrew · Apr 8, 2010

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\