There is a command in the DOS command is pause, its function is to output the message "Press any key to continue ...", and then the user will tap a key after the program continues to run.
Pause it prompts "Press any key to continue ...", the pause command has no arguments, its command is itself, and when the pause command runs, it interrupts the executed statement. This interrupt is not stopped immediately, just paused, and the following statement continues after any key is pressed. And should be used more than once, in a batch command, you can try multiple pause commands.
I want to customize this hint text and change it to something else. Like "Please press any key to start or end" or directly remove the prompts, retain the pause function, in the following ways to achieve:
Copy Code code as follows:
echo, press any key to start or end
Pause>nul
Explanation: The second sentence function is to remove the hint "please press any key to continue ...", the first sentence is you want to output the content of the hint