@echo off
title 宽带连接监控
mode con cols=26 lines=3&color 4e
:start
for /f "skip=1 delims=" %%a in ('rasdial') do (
ipconfig|findstr/i "%%a">nul&&(
title=宽带已连接
goto :next
)
rasdial 宽带连接名称 账号 密码
title=宽带未连接 拨号完成
)
:next
for /l %%i in (15,-1, 0) do (
cls
echo.
echo 倒计时%%i 秒 重新检测
ping 127.1 -n 2 >nul
)
goto :start
Last modification:April 13, 2022
© Allow specification reprint