关闭浏览器BAT

上一篇 / 下一篇  2011-06-16 19:14:38 / 个人分类:Testing

@ECHO OFF
title Close Browsers
color a

echo *************************************************************
echo @ Input the number below to terminate the browser process! @

echo ---------------------------
echo   1:IE
echo   2:360se
echo   3:Chome
echo   4:Firefox
echo   0:All above
echo.
echo Type [e] to exit directly.
echo ---------------------------

:start
set /p num=Please input:
echo.

if "%num%"=="e" goto END
if "%num%"=="1" goto IE
if "%num%"=="2" goto 360se
if "%num%"=="3" goto Chrome
if "%num%"=="4" goto Firefox
if "%num%"=="0" goto ALL
goto retry

:END
exit

:IE
taskkill /f /im iexplore.exe
exit

:360se
taskkill /f /im 360se.exe
exit

:Chrome
taskkill /f /im chrome.exe
exit

:Firefox
taskkill /f /im firefox.exe
exit

:ALL
taskkill /f /im iexplore.exe
taskkill /f /im 360se.exe
taskkill /f /im chrome.exe
taskkill /f /im firefox.exe
exit

:retry
echo ===== Error: Invalid character, try again please! =====
echo.
goto start

TAG:

 

评分:0

我来说两句

Open Toolbar