How copy multiple folders in one xcopy command

Posted by Dark Training on January 13, 2012 tags: | windows | batch

For those that are use to the Linux world where you can stack multiple copy locations and point them all to one destination like you can with the "cp" command, here is how you can do that with xcopy:

for %i in (folder, folder2,  folder3) do xcopy %i d:\

(Replace D with your desired destination drive or path.