PDA

View Full Version : Batch Pausing



Chilling_Silence
04-10-2002, 01:46 PM
I want to create a batch file that Pings "Pc X" and then pauses at the end before exiting.
I'll just use:
Ping "Pc X"

but from there, I'm not sure how to pause it. BTW, "Pc X" is not the real name and does not include the speach marks!

Quick and easy question
Cheers

Chilling_Silence

Babe Ruth
04-10-2002, 01:51 PM
Chill, A quick 'n dirty woulld be to put a PAUSE command as the last statement. This would give the following output "Press any key to continue . . ." However you would then have to press enter to continue.

Babe.

Chilling_Silence
04-10-2002, 01:59 PM
Good enough, thanks!

bmason
04-10-2002, 02:07 PM
If you want your own pause message you can redirect pauses output to null and print your own message before it.

eg:

echo.
echo Your message here
pause > NUL