CODE: [Copy to clipboard]@echo off :: if 语句可以用 /i 参数来忽略大小写 for /f %%i in ('tasklist') do if "%%i"=="QQ.exe" echo QQ.exe在运行&goto end echo 进程中没有名为 QQ.exe 的进程 :end pause