I am having internet outages and I want to monitor when it is happening. the easiest thing that i thought of was scheduling a batch file to ping an external ip then internal ip, and output the results to a text file. Review these files and figure out general time frames of the outages.
This batch worked, but every time i ran it it overwrote the last run. What I would like it to do is to name the output text file in a series, eg... pingtest1.txt, pingtest2.exe etc... What would also work would be to have the output append the text file, and i can add a "time /T" to keep track of when things happen
What can I add to the batch to achieve something like this?
I am using windows 7, but i have a linux system as well if a batch for that is easier.
Edited by tenz, 12 July 2011 - 08:43 PM.