In Windows/DOS batch files:
pause
This prints a nice "Press any key to continue . . . "
message
Or, if you don’t want the "Press any key to continue . . ."
message, do this instead:
pause >nul
More Related Contents:
- Batch file v PowerShell script
- How can you find and replace text in a file using the Windows command-line environment?
- Single line with multiple commands using Windows batch file
- How do I run two commands in one line in Windows CMD?
- Batch command date and time in file name
- How to check if a process is running via a batch script
- How to echo with different colors in the Windows command line [closed]
- Stop and Start a service via batch or cmd file?
- Show a popup/message box from a Windows batch file
- Create an empty file on the commandline in windows (like the linux touch command)
- How do I shutdown, restart, or log off Windows via a bat file?
- Why %processor_architecture% always returns x86 instead of AMD64
- Windows shell command to get the full path to the current directory?
- How do I minimize the command prompt from my bat file
- How do I get the equivalent of dirname() in a batch file?
- Why doesn’t my stderr redirection end after command finishes? And how do I fix it?
- how to empty recyclebin through command prompt?
- Difference between %variable% and !variable! in batch file
- Windows batch script to delete everything in a folder except one
- Is there an equivalent of ‘which’ on the Windows command line?
- How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required?
- Set a persistent environment variable from cmd.exe
- ‘chcp’ is not recognized as an internal or external command, operable program or batch file. on a Windows PC
- Create list or arrays in Windows Batch
- Using another language (code page) in a batch file made for others
- String processing in windows batch files: How to pad value with leading zeros?
- CALL command vs. START with /WAIT option
- how to get yesterday’s date in a batch file
- Run a Command Prompt command from Desktop Shortcut
- How to detect if CMD is running as Administrator/has elevated privileges?