avhimkov
8/12/2016 - 10:02 AM

RouterReboot

RouterReboot

@Echo Off
SetLocal EnableExtensions EnableDelayedExpansion

ping www.ya.ru
If !ErrorLevel! == 0 (
Echo Internet Online
) Else (
Echo Internet Offline
Echo rebooting modem..
rundll32 url.dll,FileProtocolHandler http://192.168.1.1/rebootinfo.cgi
)