ICMP Ping and log batch file

This batch file is designed to ping for 1 minute and send the output to a log file. The process then time and date stamps the log and the ping starts again. If there is a connectivity issue it will be clearly visible in the log.

:TOP

echo %time% >> c:\ping.log
echo %date% >> c:\ping.log

Ping x.x.x.x -n 60 >>c:\ping.log

GOTO TOP

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: