Forum Home
Press F1
 
Thread ID: 25462 2002-10-04 01:46:00 Batch Pausing Chilling_Silence (9) Press F1
Post ID Timestamp Content User
85928 2002-10-04 01:46:00 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
Chilling_Silence (9)
85929 2002-10-04 01:51:00 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.
Babe Ruth (416)
85930 2002-10-04 01:59:00 Good enough, thanks! Chilling_Silence (9)
85931 2002-10-04 02:07:00 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
bmason (508)
1