:: move to current folder
cd /d %~dp0
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
:64BIT
cmd.exe
exit

:32BIT
cmd.exe
exit

:: 解壓 cab 檔案
extrac32 /e /y text.cab

:: 列出執行的程式
tasklist /NH > a.txt
:: 尋找程式
find /i "iexplore.exe" a.txt
IF errorlevel 1 (
echo not found
) ELSE (
echo found
:: 關閉程式
taskkill /F /IM iexplore.exe /T
)
arrow
arrow
    全站熱搜

    JohnDX 發表在 痞客邦 留言(0) 人氣()