
CODE: [Copy to clipboard]@echo off
:a
Rasdial "宽带连接名" /disconnect
>nul 2>&1 ping -n 30 127.1
rasdial "宽带连接名" "账号" "密码"
for /f "tokens=2* delims=:. " %%a in ('ipconfig^|findstr /c:"IP Address"') do set b=%%b
if defined #%b% goto:a
set #%b%
start iexplore.exe "http://www.baidu.com"
goto:a
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |