Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: command to pause a batch file  (Read 2932 times)

0 Members and 1 Guest are viewing this topic.

magic_plank

  • Guest
command to pause a batch file
« on: August 05, 2005, 05:05:19 AM »
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.
thanks

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: command to pause a batch file
« Reply #1 on: August 05, 2005, 05:20:06 AM »
You can use the PAUSE command. Your batch file will sit and wait until you hit a keyboard key.

8)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

magic_plank

  • Guest
Re: command to pause a batch file
« Reply #2 on: August 05, 2005, 05:25:22 AM »
Thanks, that sounds about right!  :D

Dilbert

  • Moderator


  • Egghead

  • Welcome to ComputerHope!
  • Thanked: 44
    Re: command to pause a batch file
    « Reply #3 on: August 05, 2005, 09:31:19 AM »
    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.)  :)
    "The geek shall inherit the Earth."