Results 1 to 5 of 5

Thread: How to save output of ping command

  1. #1
    Join Date
    Dec 2010
    Posts
    87

    How to save output of ping command

    Recently I had brought a computer, Iím doing IT, so I need a computer for my study. Iím a beginner in IT, so I donít know much about computer uses and its application. I want to save the output of c program in a fixed file, that output I will use in future. I want to know that, how should I save the output in a fixed file, please tell me the procedure step by step, I donít know anything, please help me.

  2. #2
    Join Date
    Nov 2008
    Posts
    160

    Re: How to save output of ping command

    It is very easy to save the output from command prompt to a text file, you just have to follow few steps:
    Assuming you are using Win XP, Start > RUN type in CMD and hit Enter. A "dos"
    box will open. type in your ping command and see the results, when finished.
    To save the output of the result right click>select all>ctl+c. Open notepad ctl+v. or you can save it to any text editor.

  3. #3
    Join Date
    Jan 2009
    Posts
    150

    Re: How to save output of ping command

    Assuming you are using WinXP, Start > RUN type in CMD and hit Enter. A "dos"
    box will open. type in your ping command and see the results, when finished,
    either close the box as you would any normal window, or just type exit to
    close it
    Alternatively, Start > Programs > Accessories > Comamnd Prompt also opens a
    "dos" box.
    To save the output of the command click right >select all>ctl+c. Open notepad ctl+v. or you can save it to any text editor which you want.

  4. #4
    Join Date
    Dec 2008
    Posts
    150

    Re: How to save output of ping command

    There are different methods for saving the command prompt output. You can simply click right and select all the content of the output, then press ctrl+c to select and ctrl+v to paste or you can also you use mouse for doing that. There is another method for doing this which are as follows:
    traceroute 127.0.0.1 > traceresult.txt
    then open the file pingresult.txt and so on.
    Or take a screen shot.
    Or use Mark (i.e. copy)/paste into another application.

  5. #5
    Join Date
    Nov 2009
    Posts
    308

    Re: How to save output of ping command

    You can do it in many way. One of the way are as follows:
    By adding a command to the ping request to save the output as a text file.

    Click Start, Programs, DOS Prompt or click Start, Run. In the Run
    box, type "CMD" without the quotes and press enter.

    At the prompt, type:

    ping 192.168.0.1 >c:\ping.txt

    That will save the ping data to a text file in the root directory of drive C

    Now double-click c:\ping.txt and you will see something similar to this:

    Pinging 192.168.0.1 with 32 bytes of data:

    Reply from 192.168.0.1: bytes=32 time<1ms TTL=64
    Reply from 192.168.0.1: bytes=32 time<1ms TTL=64
    Reply from 192.168.0.1: bytes=32 time<1ms TTL=64
    Reply from 192.168.0.1: bytes=32 time<1ms TTL=64

    Ping statistics for 192.168.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

Similar Threads

  1. ping is not recognized as an internal or external command
    By OBAMA in forum Operating Systems
    Replies: 4
    Last Post: 16-11-2010, 01:16 PM
  2. Ping command adding dns suffix to name.
    By shadeyman in forum Networking & Security
    Replies: 1
    Last Post: 09-11-2010, 11:45 PM
  3. ps aux command output of cpu column
    By LinuxeD in forum Operating Systems
    Replies: 3
    Last Post: 01-08-2009, 09:14 PM
  4. How to use ping command of dos
    By Kushan in forum Operating Systems
    Replies: 1
    Last Post: 27-05-2009, 09:49 AM
  5. Save the video output of a PC from another
    By Pollock in forum Hardware Peripherals
    Replies: 5
    Last Post: 26-02-2009, 09:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •