断网重连 - 翼展电脑服务中心


宽带连接监测程序,防止断网。

2024-3-14 乱云飞 评论(0) 浏览(18) 标签: 批处理 检测网络 断网重连 宽带连接 宽带拨号

@echo off
@title 宽带连接监测程序 2024-03-14 BY wwwylg
@mode con cols=50 lines=10 
color 9F
setlocal enabledelayedexpansion  
  
:QQ5082500 
rem 检测宽带连接状态  
rasdial "宽带连接" /status | findstr "已连接" >nul  
if errorlevel 1 (  
    echo.
    rasdial "宽带连接" 13213610060 123456 
    if !errorlevel! == 0 (  
        echo %date%%time%拨号连接成功。  
    ) else (  
        echo %date%%time%拨号连接失败,请检查账号和密码是否正确。  
    )  
) else (  
    echo %date%%time%宽带已连接。  
)  
  
rem 等待5分钟(300秒)后再次检测  
timeout /t 15 >nul
cls
goto QQ5082500
预ICP备10086-001号 © 翼展网/80C.CC 技术支持/洛阳翼展科技
TEL / 13213610060 QQ / 345794501
Powered by emlog