1.

Solve : command to pause a batch file?

Answer»

hi, im writing a really simple autoexec.bat to go on a dos boot disk. I would like to KNOW if there is a command that when USED in a batch file; will WAIT until enter is pressed or space or something and then carry on, because you need to put in NTFSdos on disc after the dos boot disc to carry on properly booting.
thanksYou can use the PAUSE command. Your batch file will sit and wait until you hit a keyboard key.

Thanks, that sounds about right! And, if you don't want the "Press any key to continue . . ." displayed on your screen, you can type PAUSE > NULL and "Press any key to continue . . ." won't display on your screen. (In case you want to WRITE your own personal message.)



Discussion

No Comment Found