In Dos batch file press ENTER key to open program or press any other key to exit from bat.

Posted by user521875 on Stack Overflow See other posts from Stack Overflow or by user521875
Published on 2010-11-26T23:27:05Z Indexed on 2010/12/24 7:54 UTC
Read the original article Hit count: 320

Filed under:
|
|

I have a DOS batch file that show some results on the cmd console. I want users to press Enter to run program or press any other key on the keyboard to exit.

I don't want to use options/choices because in that case user will have to enter at least something which I need to check and set the action.

Example: At the end of the cmd console something say like this Press ENTER to open abc.exe or press any key on the keyboard to exit!

Thanks!

© Stack Overflow or respective owner

Related posts about dos

Related posts about ms-dos