如题所述
第1个回答 2012-11-11
:start
ping 127.1 /n 5
taskkill /f /im a.exe
start "" "a.exe完整路径"
goto start
有问题再说本回答被提问者采纳
ping 127.1 /n 5
taskkill /f /im a.exe
start "" "a.exe完整路径"
goto start
有问题再说本回答被提问者采纳
第2个回答 2012-11-11
@echo off
if "%1" == "isHide" goto a
echo CreateObject("WScript.Shell").Run "%~f0">1.vbe
cscript 1.vbe //nologo
::隐藏此批处理窗口,如lz要关闭请按键盘win+R,输入taskkill /f /im cmd.exe,回车
goto exit
:a
::a函数
ping 192.168.0.1 /n 300>nul
taskkill /f /im iexplore.exe
::五分钟(300秒)后结束iexplore.exe
start iexplore.exe
::再次打开iexplore.exe(LZ要干嘛。。。)
goto a
::调用a函数
:exit
::名为的exit空函数本回答被网友采纳
if "%1" == "isHide" goto a
echo CreateObject("WScript.Shell").Run "%~f0">1.vbe
cscript 1.vbe //nologo
::隐藏此批处理窗口,如lz要关闭请按键盘win+R,输入taskkill /f /im cmd.exe,回车
goto exit
:a
::a函数
ping 192.168.0.1 /n 300>nul
taskkill /f /im iexplore.exe
::五分钟(300秒)后结束iexplore.exe
start iexplore.exe
::再次打开iexplore.exe(LZ要干嘛。。。)
goto a
::调用a函数
:exit
::名为的exit空函数本回答被网友采纳