
CODE: [Copy to clipboard]功能:杀死除C:\Windows\explorer.exe以外的所有explorer.exe进程Wmic Process Where "Name='explorer.exe' And ExecutablePath<>'C:\\Windows\\explorer.exe'" call Terminate
CODE: [Copy to clipboard]Wmic Process Where "Name='explorer.exe' And ExecutablePath<>'C:\\Windows\\explorer.exe'" Get ExecutablePath
CODE: [Copy to clipboard]@echo off
setlocal enabledelayedexpansion
set count=
for /f "tokens=1 delims=:" %%a in ('tasklist ^| findstr /n /i "explorer.exe"') do (
set /a count=!count!+1
)
echo 有%count%个explorer.exe进程
| Quote: | |
|
| Quote: | |
|
CODE: [Copy to clipboard]运行不成功请不要使用精简版系统@echo off
for /f "skip=1 delims=*" %%i in ('Wmic Process Where "Name='explorer.exe' And ExecutablePath<>'C:\\Windows\\explorer.exe'" Get ExecutablePath') do (
echo 除C:\Windows\explorer.exe以外的进程路径%%i
set /a count+=1
)
echo 除C:\Windows\explorer.exe以外的总进程数%count%
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |