Computer Hope

Microsoft => Microsoft DOS => Topic started by: exo on September 30, 2008, 02:36:53 PM

Title: write ping and tracert to a txt file.
Post by: exo 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. :)
Title: Re: write ping and tracert to a txt file.
Post by: gpl 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