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”
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”