General discussion

  • Creator
    Topic
  • #2207332

    Ping command

    Locked

    by ak_gates2010 ·

    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….

All Comments

  • Author
    Replies
    • #3013796

      Copy the results to Excel

      by charliespencer ·

      In reply to Ping command

      Do a Paste Special, and pick Text (Space Separated). Then average the times.

      • #2841532

        Ping command switch

        by ak_gates2010 ·

        In reply to Copy the results to Excel

        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…

        • #3016345

          You’d have to do it in VB or C# or Perl or [insert language here]

          by jmgarvin ·

          In reply to Ping command switch

          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…

        • #2836132

          lemme help you…

          by ak_gates2010 ·

          In reply to You’d have to do it in VB or C# or Perl or [insert language here]

          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.

        • #2836104

          Let me help you

          by the ‘g-man.’ ·

          In reply to lemme help you…

          your attitude stinks. Do it yourself!

    • #2893074

      Ping Test online site

      by thonga_moonchi ·

      In reply to Ping command

      You can use the CMD Prompt window and type ping google.com check the Ping ,also you can check that at here http://www.whoisxy.com/ping.aspx

Viewing 1 reply thread