Page 1 of 1

[Solved] Make USB key....

Posted: 25 May 2009 15:19
by Eagle710
I want to format a USB key a particular way and copy certain files to it. I would like to automate this because I will be setting up a few USB keys....any ideas on a good way of getting this started? I want to make a master batch file that sets this up.

Posted: 16 Jun 2009 14:13
by Eagle710
I have the code that will format and copy the files to the USB key. I was wondering if I could pause and wait allow the user to hit enter when the next usb key is plugged in. Any help with pausing until a user hits the enter key.

Posted: 18 Jun 2009 10:15
by avery_larry
Umm . . .

pause


??

Posted: 21 Jun 2009 08:54
by Eagle710
I want to ask the person how many times they want to run this code..... wait for a reply then loop through the code until we reach the last number......

Posted: 22 Jun 2009 11:38
by avery_larry
Like this?

Code: Select all

set /p num=Enter the number of times you want to loop:
set count=1
:loop
cls
echo This is pass #%count% of %num%.
echo Press enter when the USB key is ready . . .
pause >nul
echo Put code here
set /a count+=1
if %count% LEQ %num% goto loop

Posted: 23 Jun 2009 06:37
by Eagle710
Thanks. The code worked great.