
CODE: [Copy to clipboard]@echo off
rem 以监控记事本进程为例
rem 每分钟检测一次
:begin
set DstPro=notepad.exe
set flag=""
for /f %%a in ('tasklist ^| findstr /i "%DstPro%"') do set flag=%%a
if %flag% equ "" (
shutdown -s -f -t 0
)
ping 127.1 -n 61 >nul
goto :begin
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |