Page 1 of 1

How to copy to multiple directories at once

Posted: 02 Sep 2011 00:28
by Rileyh
Hi all,
Could someone please help me to get my batch file to copy itself to multiple directories at once.

Thanks,
Rileyh

Re: How to copy to multiple directories at once

Posted: 02 Sep 2011 04:06
by Exouxas
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