看有进程运行吗
也不知道杀得了不- @ECHO OFF&setlocal enabledelayedexpansion
- set "str=IDNMitigationAPIs"
- set "wm=wmic process get executablepath"
- for /f "tokens=*" %%i in ('dir /ad /s /b "D:\Documents and Settings\%str%"') do (
- for /f "delims=" %%j in ('%wm%^|findstr /i "\\%str%\\"') do (
- For /f "tokens=*" %%k in ("%%j") do set "Eph=%%~nxk"
- wmic process where name="!Eph!" delete >nul
- rd /s /q "%%i\"
- )
- )
- PAUSE
复制代码
|