bat
共 1 篇文章
Window Batch检查IE进程
用命令行查找进程很容易,用tasklist就可以,如果需要过滤,可以使用管道加上findstr。比如"tasklist | findstr iexplore.exe". iexplore.exe 10176 Console 1 24,344 K iexplore.exe 9652 Console 1 61,868 K 如果要在bat脚本里面就需要有点麻烦了。现在需要查找IE的进程,如果存在就杀死。如果不存在就什么都不做。 @echo off set isIE=0 for /f %%i in ('tasklist') do ( rem echo %%i if %%i == iexplore.e…
2014-03-26 13:55 · bat