Batch File – “Press Any Button To Continue” command

"press any button to continue" - batch script

To implement “Press Any Key To Continue” in a batch file, add below commands in your batch file. It simply pauses the batch file execution until the user presses any keyboard button.

echo Press any key to Continue.
pause > nul

Note: You can change the “Press Any Key To Continue” as per your requirement. It is just a message. pause > nul command pauses the execution until any key is pressed.

Also check [BATCH File] – Count Files in a folder and store it in a variable

About the Author

SRINI S

A passionate blogger. Love to share solutions and best practices on wordpress hosting, issues and fixes, excel VBA macros and other apps

Leave a Reply

Your email address will not be published.