Ms-dos batch file pause with enter key
Is it possible in ms-dos batch file to pause the script and wait for the user to hit enter key?
I'd like to do it inside a loop After each iteration, I want the script to pause and wait for user to hit 'Enter'
Best Answer
There's a pause
command that does just that, though it's not specifically the enter key.
If you really want to wait for only the enter key, you can use the set
command to ask for user input with a dummy variable, something like.
set /p DUMMY=Hit ENTER to continue...