I'm trying to create a batch file that will ping a certain server and will only display the respond time. I don't mind if value is stored in a variable or not.
If you do a normal ping you get:
Reply from <hostname/server>: bytes=#byte_value time=#time_value TTL=#TTL_value
And I only want:
#time_value
I don't know if i need to use particular tokens
or use findstr
for the time value. I have failed every attempts so far.
Thanks in advance
From command line:
Used in a batch:
Read entire
for /?
orFOR /F
Loop command: against the results of another command.