How to copy to multiple directories at once

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Rileyh
Posts: 147
Joined: 01 Sep 2011 03:54
Location: Perth, Western Australia

How to copy to multiple directories at once

#1 Post by Rileyh » 02 Sep 2011 00:28

Hi all,
Could someone please help me to get my batch file to copy itself to multiple directories at once.

Thanks,
Rileyh

Exouxas
Posts: 34
Joined: 01 Sep 2011 12:52

Re: How to copy to multiple directories at once

#2 Post by Exouxas » 02 Sep 2011 04:06

One example:

@echo off
copy batchfile.bat C:\folderyouwant\
copy batchfile.bat C:\folderyouwant2\
copy batchfile.bat C:\folderyouwant3\
copy batchfile.bat C:\folderyouwant4\
echo done
echo Press any key to fail massively...
pause>nul

Post Reply