Re: script to ping a server
From: Austin M. Horst (anonymous_at_discussions.microsoft.com)
Date: 03/07/04
- Next message: Joe Earnest: "Re: Refresh the Desktop"
- Previous message: McKirahan: "Re: getting error in wsh code"
- In reply to: Sameh Ahmed: "script to ping aserver"
- Next in thread: Torgeir Bakken (MVP): "Re: script to ping aserver"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 7 Mar 2004 13:11:08 -0800
If you don't care what type of script, a batch script would be very simple.
PING 127.0.0.1 | FIND/I "TTL=" > NUL
IF %ERRORLEVEL% == 1 enter command(s) to execute if ping failed
IF %ERRORLEVEL% == 0 enter command(s) to execute if ping was successful
or
PING xyz.com | FIND/I "BYTES=" > NUL
IF %ERRORLEVEL% == 1 enter command(s) to execute if ping failed
IF %ERRORLEVEL% == 0 enter command(s) to execute if ping was successful
Austin M. Horst
- Next message: Joe Earnest: "Re: Refresh the Desktop"
- Previous message: McKirahan: "Re: getting error in wsh code"
- In reply to: Sameh Ahmed: "script to ping aserver"
- Next in thread: Torgeir Bakken (MVP): "Re: script to ping aserver"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|