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 off echo Checking connection ping -n 1 www.google.com >nul if errorlevel 1 ( cls echo Failed pause>nul exit ) cls echo Success! pause>nul exit