I’m writing a Windows batch script. By default, the pause command will pause the script and display the text "Press any key to continue…".
How do I modify this text to display my own text to the user?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could hide the text from the
pausecommand by using this:pause >nulThen you could echo your own message to tell the user it has paused:
echo The batch file has pausedSo the full script might look like this: