Usually, when pinging a server IP address we have this in return:
Pinging with 32 bytes of data:
Reply from : bytes=32 time=151 TTL
Well,
ping -n 1
Will send only 1 ping request. And you should be able to find the reply line using none other than the FIND
command.
So, something like this:
ping -n 1 | FIND "Reply"
UPDATE
I know the above works on an English, Windows 7 machine. I would assume that it would work for other localizations, but this may be an incorrect assumption.
UPDATE 2
This question seems to provide some insight. You may have to write the output of ping to a file (using the >
output redirection pipe) and then use the commands in the answers to get only the second line.