Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: write ping and tracert to a txt file.  (Read 11585 times)

0 Members and 1 Guest are viewing this topic.

exo

  • Guest
write ping and tracert to a txt file.
« on: September 30, 2008, 02:36:53 PM »
Hi! I need help with writing a batch file that would ping google.com every 5mins, tracert google.com every 30mins, save the results to a txt file every 5 hours. if you could help me with this I would be grateful. :)

gpl



    Apprentice
  • Thanked: 27
    Re: write ping and tracert to a txt file.
    « Reply #1 on: October 01, 2008, 02:30:45 AM »
    You can use the windows scheduler to set off your tasks, logging the results is easy,

    AnyCommand > filename
    puts the output of AnyCommand into filename, and
    AnyCommand >> filename
    does the same, but adds it on to the end of the file if it already holds info (> on its own recreates the file)

    Graham