Wednesday, December 23, 2015

How to change the PAUSE message in a batch file

I use two different options for sing custom PAUSE text:

Option #1:

@echo off

echo Press any key to continue or Ctrl-C to abort.

pause > nul

Option #2

set /p=Press ENTER key to continue or Ctrl-C to abort.

*Option 2 requires that ENTER key is pressed