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
if errorlevel 1 goto R1
if errorlevel 0 goto R0
goto R2
ipconfig /release
ipconfig /renew
echo “connected”


Leave a Reply

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