Is there a way to ping to a text file showing the date and time of each responce?

Is there a way to ping to a text file showing the date and time of each responce?
I know how to do the follow:
Ping ipaddress -t >c:\temp\filename.txt
But I would like to know what time and date it fails.
Thanks,
Wendell
wgramlichAsked:
Who is Participating?
 
Kyle AbrahamsSenior .Net DeveloperCommented:
you would have to do a batch file.

loop:
echo %time% >> log.txt
ping ip >> log.txt
goto loop
0
 
JohnjcesCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.