How to check if ping responded or not in a batch file
- by Ismail
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?