Best method for bulk copying on multiple USB drives?

Associate
Joined
6 Jul 2003
Posts
2,075
Hold your horses there piracy brigade - it's legal!

Basically I work for a retailer and we're going to be doing a bundle of 2 products, one of them being a USB key drive with some files pre-installed.

It'd take ages to have one guy plug in a drive, drag the files on, then remove, especially when there could be potentially hundreds to do, so I need to find out a better method.

I'm thinking plugging as many keys in as possible (every USB port filled), then having a batch script that copies to all the drives. So 1. Drives in 2. Execute the batch script 3. Drives out 4. Repeat.

Does this sound good enough, and if so could anyone help with the command for the batch script?
 
copy source f:
copy source g:
copy source h:
copy source i:
.
.
.
copy source z:

Save as a batch, plug in all drives, and go.

Any drive letters which are not present will give the message of

The device is not ready.
0 file(s) copied.
 
xcopy /e /h /y "c:\sourcefolder\" "d:\"
xcopy /e /h /y "c:\sourcefolder\" "e:\"
xcopy /e /h /y "c:\sourcefolder\" "f:\"
xcopy /e /h /y "c:\sourcefolder\" "g:\"
 
xcopy /e /h /y "c:\sourcefolder\" "d:\"
xcopy /e /h /y "c:\sourcefolder\" "e:\"
xcopy /e /h /y "c:\sourcefolder\" "f:\"
xcopy /e /h /y "c:\sourcefolder\" "g:\"

This will work perfectly, but will only copy 1 drive at a time, if you have each line as a separate script you can copy to them all at once.

Also the excellent ejectmedia (www.uwe-sieber.de) will allow you to script the removal of the devices at the end

so each drive letter would have a separate script like
xcopy /e /h /y "c:\sourcefolder\" "e:\"
<pathtoexe>\ejectmedia e:

you could also use another script to start all the other scripts with one click
start "" "script1.bat"
start "" "script2.bat"

This will allow you to run the one script to run all the others at once
 
tbh, I'd rather do them all separately, it would nail your hard drive to try and copy that many at once :)
 
Back
Top Bottom