Terminated CMD.exe module after running ping tests - can I get those results back?

Hi all,

I've had Internet issues and my ISP has asked I run some diagnostics and forward them the results.

These comprise a browser-based Speed Test, and running "tracert" and "ping" commands in cmd.exe.
On one test I got results of 51% packet losses, unfortunately after pasting the results in a .txt file and closing the cmd module I realised that not all the results had been copied and that the worst ones were the missing ones.
I re-ran the test but got perfect results.

Is there a way for me to find the earlier results?

It was less than an hour ago.

Thanks in advance.

Comments

  • +4

    No

    • B*gger!
      Alas I suspected this :(

      The same thing happened in the earlier tests, for some reason SELECT ALL isn't selecting all or ENTER isn't copying all.

      • You are better off taking a screen shot.

  • I think you can use > filename.txt as an argument to save it, could be wrong. There's an easy way to save it to file anyhow, google is your friend.

    • Thanks, I'll give it a try.

  • Nope

  • +1

    Anything you do in CMD is not saved unless you export to file.

    To output the results:

    Eg: ping google.com -t > C:\googleping.txt
    eg: tracert google.com > C:\tracert.txt

    ">" tells CMD to export the results to file followed by the location of where the output file should be saved

    • Hmm, I keep getting "access is denied" with that command.

      Additionally though, I have four IP addresses to run the ping test at, which is probably why the "select all"/"copy" didn't run all the way back to the start.

      Can I list all four addresses in one command?
      ie
      ping google.com ping 8.8.8.8 ping 103.000.255.255 ping 103.000.000.001

      So that it all four will print to one file and I can go off and do something else for the ten or fifteen minutes the test takes?

      • +1

        Run CMD as Administrator. Right click on 'Command Prompt' Select run as administrator.

        • But he should be admin or else he will again end up in error.

        • Thanks,please see reply to Sergeant Salami, below.

      • Do you have access to write to the C drive? Sounds like you might not so try changing it to C:\users\yourusername\Desktop\filename.txt

        Or right click cmd and run as admin.

        I'd just output each ping test in separate files. Then zip them all up and send your ISP the zip file.

        By the way the -t switch will continue to ping more than the standard 4 times. If you press control + C it will stop the ping test.

        • I should have access, however, I also tried running as administrator (as Scandalous suggested above) to no avail.

          Launch from cmd.exe the precursor is: C:\Users\SamBuster>
          As Administrator the command line begins: C:\windows\system32>

          When I tried normally with: ping google.com -t > C:\Users\SamBuster\Desktop\googleping.txt
          I get "Access is denied" followed by "The system cannot find the specified path"
          But the loaction C:\Users\SamBuster\Desktop\ is correct and works in the address bar of Windows Explorer.

          When I run as administrator the precursor is different: C:\windows\system32>
          I can run a normal ping test but the command: ping google.com -t > C:\Users\SamBuster\Desktop\googleping.txt just starts a new blank line with a flashing cursor but no text appearing until I terminate, ctrl + C. It then tells me "The system cannot find the path specified".

          Seems my problem is getting the cmd.exe to find locations on my computer. Perhaps I need to match directory with destination?

          Incidentally, the ISP gave me 100 pings per IP address: ping google.com -n 100

          By the way, I appreciate the help, thanks.

          • @sam buster: Got it!

            Launched normally.

            the precurosr: C:\Users\username>
            first command: cd Desktop
            new precursor: C:\Users\username\Desktop>
            second command: ping google.com -t > googleping.txt
            Ctrl+C to stop.

            There, on my Desktop, appeared the results file.

            Interestingly though, no results appeared in cmd.exe itself.

            Still, I have no idea how I would change directory from the Administrator since I would need to backtrack through the address rather than simply add to it.

            Thanks very much for your help!

            • +2

              @sam buster: Ah good work. It's normal for CMD not display any results while outputting to file. If you run your ping google.com -n 100 > C:\users\sambuster\desktop\googleping.txt it will ping google 100 times then stop. You'll see your txt file with the ping results.

              Now you need to wait until your internet is grinding to a halt and then run the tests. If you need any more help let me know :)

Login or Join to leave a comment