Simple batch script to check your internet connection and reconnect if the internet is disconnected

Put this as a scheduled task.
ping -n 1 -w 500 yahoo.com
if errorlevel 1 goto R1
if errorlevel 0 goto R0
:R0
goto R2
:R1
ipconfig /release
ipconfig /renew
:R2
echo “connected”

In

Leave a Reply

Your email address will not be published. Required fields are marked *