bat 脚本
@echo offif "%1"=="" (exit /B
)set queryStr=%1for /f "tokens=2" %%i in ('tasklist ^| findstr %queryStr%') do taskkill /PID %%i /F
找到所有 power 进程 id
cmd /c "@echo off && for /f "tokens=2" %i in ('tasklist ^| findstr power') do echo %i"
找到所有 power 进程并停止
cmd /c "for /f "tokens=2" %i in ('tasklist ^| findstr power') do taskkill /PID %i /F"
``