In Dos batch file press ENTER key to open program or press any other key to exit from bat.
- by user521875
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!