@echo off:xtasklist /nh|find /i "进程.exe"if ERRORLEVEL 1 (Msg %username% 进程.exe不存在,请启动此进程。 ) else (ping -n 3 127.1>nul)goto x 这个是相隔3秒检测一次,检测不到会弹出消息,检测到则三秒后循环检查