del %temp%\btest.txt
wmic process get name,executablepath,processid|findstr 路径关键字 >%temp%\btest.txt
for /f "tokens=4" %a in (%temp%\btest.txt) do taskkill /f /pid %a
del %temp%\btest.txt
...全文
197回复打赏收藏
命令杀指定路径关键字里程
del %temp%\btest.txt wmic process get name,executablepath,processid|findstr 路径关键字 >%temp%\btest.txt for /f "tokens=4" %a in (%temp%\btest.txt) do taskkill /f /pid %a del %temp%\btest.txt