Using a batch file would it be possible to do something like:
ping google.com
if return success do ECHO You are connected to the internet
else return
echo Testing Internet Connection of google.com @echo off :loop ping google.com -n 1 -w 5000 > nul if errorlevel 1 echo %date% - %time% Not connected >> pingtestlog.txt ping -n 30 127.0.0.1 > nul goto loop