Discussion Locked

Ping command

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi all,

I need some help as i am new to batch....
thing is like...
i run

ping google.com

capture the result to text file

ping google.com >> test.txt

it captures every thing...
now what i need is only average value in that file....
please revert....

6 replies

by ak_gates2010

Nopes ... that does not solve my problem.... i want the whole process to be automated....

out of ping result i want only average value to be extracted wuth any command line switch.
Any one please come up with something that seems to solve the problem...

by jmgarvin

You'd have to run the ping command, then calculate the averages, then output what you wanted to a file.

I'd do it in Linux with a bash script, but I'm lazy like that...

by ak_gates2010

see the logic for this go something like....

ping google.com -> check the ouput -> check the avg value >> c:\test.txt.

Need the batch code for this task.... guys help.

This discussion is closed to new replies.