@echo off
set k=0
:abc
for /f %%a in ('tasklist.exe /fi "IMAGENAME EQ iexplore.exe" ^|findstr /i "iexplore.exe"') do set i=%%a
if "%i%" NEQ "" taskkill /F /IM iexplore.exe && set /a k+=1
if %k%==3 goto end
ping 127.1 -n 2 >nul 2>nul
goto abc
:end
exit
@echo off
:abc
for /f %%a in ('tasklist.exe /fi "IMAGENAME EQ iexplore.exe" ^|findstr /i "iexplore.exe"') do set i=%%a
if "%i%" NEQ "" taskkill /F /IM iexplore.exe
set k+=1
if %k%==3 goto end
goto abc
:end
exit
我新手,以上如有错误,请帮忙修正!