@echo off echo %date% %time:~0,8% 启动守护程序 SET i = 0 :start SET /a i = i + 1 echo %date% %time:~0,8% 第%i%次检查 %定时15s% choice /t 15 /d y /n >nul %寻找进程% tasklist /fi "imagename eq 守护的进程.exe" | find "守护的进程.exe" > nul %如果存在该进程% if %errorlevel%==0 ( echo %date% …