Write ping results to a text file

Discussion in 'Scripting' started by asdfg, Jan 17, 2005.

  1. asdfg

    asdfg Guest

    I would like to ping a server and then write the replies to a text file
    named pingresult.txt.

    Whenever I run this script, I would like it to ammend the file, not

    Any ideas?
    asdfg, Jan 17, 2005
    1. Advertisements

  2. ping -n 1>>ping.log

    Jerold Schulman
    Windows Server MVP
    JSI, Inc.
    Jerold Schulman, Jan 17, 2005
    1. Advertisements

  3. asdfg

    asdfg Guest


    is there any way to add the time that the ping was sent?
    asdfg, Jan 17, 2005
  4. Hi

    echo Ping started %date% %time% >>ping.log
    ping -n 1 >>ping.log
    Torgeir Bakken \(MVP\), Jan 17, 2005
  5. asdfg

    asdfg Guest

    Sorry, I may not have expressed what I require clearly enough.

    I see that this puts a start time for the ping, but is there a command to
    show date/time each packet was sent?
    asdfg, Jan 17, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.