Computer Hope

Microsoft => Microsoft DOS => Topic started by: Xeratul on March 07, 2006, 06:07:58 PM

Title: Pause with 0 text...
Post by: Xeratul on March 07, 2006, 06:07:58 PM
I don't like the pause command's text.

 I mean that I would like to take away the "Press any key to continue . . . ".  

Or at least is it possible to modify the text it displays.

Is this possible?
Title: Re: Pause with 0 text...
Post by: GuruGary on March 08, 2006, 01:14:07 AM
You could redirect the PAUSE output to NUL to get rid if it.  Or to change it, you could echo just before it.

No text:
Code: [Select]
@echo off
pause >NUL

Modified text:
Code: [Select]
@echo off
echo Press a key when ready
pause >NUL
Title: Re: Pause with 0 text...
Post by: Xeratul on March 08, 2006, 08:16:04 AM
Got it!  8-)