找回密码
 加入
搜索
查看: 2133|回复: 1

[网络通信] 有没办法检测宽带连接

[复制链接]
发表于 2015-5-18 14:03:13 | 显示全部楼层 |阅读模式
本帖最后由 xymc 于 2015-5-18 14:15 编辑

打开程序检测本机有没有宽带连接,如果没有宽带连接就创建一个宽带连接,如果有程序自动退出。
创建宽带连接这个简单,主要是怎么检测有没有宽带连接这个问题

如果用bat好像可以拔个号然后看返回的错误代码判断  如果返号623就是没有宽带连接
rasdial 宽带连接 123 123 |find "623"&&goto :mdadsl
exit
:mdadsl
start adsl.exe
发表于 2015-5-18 19:50:00 | 显示全部楼层
rasdial 宽带连接 123 123 |find "623"&&goto :mdadsl >rasdial.txt
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-29 16:11 , Processed in 0.085241 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表