CODE: [Copy to clipboard]@echo off set DstProc=notepad.exe tasklist | findstr /i "%DstProc%">nul if %errorlevel% neq 0 ( echo 没有运行该进程:%DstProc% )