Ping monitor .bat file to check network connection

This simple batch file was used to monitor a network after several complaints about an erratic internet connection. I didn’t want to spend too long on the initial investigation.

Create a file called ping_test.bat and copy the script below.

When you run the script it will prompt for a hostname. The ping time is set to 4 second intervals. Modify the TIMEOUT 4 value to adjust. A log file is created in the same location as the .bat script.

Batch File Ping Test
Batch File Ping Test

Sample output from the log file:


You May Also Like

About the Author: George

Close Bitnami banner