How to check if ping responded or not in a batch file
Posted
by Ismail
on Stack Overflow
See other posts from Stack Overflow
or by Ismail
Published on 2010-06-16T05:27:21Z
Indexed on
2010/06/16
5:32 UTC
Read the original article
Hit count: 293
I want to continuously ping a server and see a message box when ever it responds i.e. server is currently down. I want to do it through batch file.
I can show a message box as said here http://stackoverflow.com/questions/774175/how-can-i-open-a-message-box-in-a-windows-batch-file/774253#774253
and can ping continuously by
ping <servername> -t
But how do I check if it responded or not?
© Stack Overflow or respective owner