| 发表于:2007-03-12 23:29:031楼 得分:100 |
@echo off title 打开上网客户端 "d:\program files\宽带上网助手.exe " :start for /f %i in ( 'tasklist ') do @if %i equ iexplore.exe ( title 5秒后ie自动关闭 ping localhost -n 5 title 正关闭ie并打开“遨游” taskkill /f /im iexplore.exe set closeie=yes rem ie已经关闭,不要再等了,马上打开遨游. "d:\program files\maxthon2\maxthon.exe " ) if %closeie%==yes ( rem ie已经关闭,再不要检测了. goto end ) else ( rem 继续检测 goto start ) :end | | |
|