ICMP Ping and log batch file version 2 for Win 7

Having seen some issues with my batch file on a Windows 7 machine, I’ve looked at tweaking it to run but show only the Minimum, Maximum and Average response time over 300 seconds (5 minutes) and then to time stamp with time+date and then loop.

:TOP
ping 1.1.1.1 -n 300 | findstr “Average” >> c:\ping.log & echo %time% %date% >> c:\ping.log
GOTO TOP

Advertisements

Comments are closed.