:ss
tasklist >c:\1.txt
find /i "SCR" c:\1.txt
if ERRORLEVEL 0 (shutdown -s -t 0) else ping 127.1 -n 10 >nul 2>nul
goto ss
这个批处理不知道什么地方出问题
我想要的功能是tasklist检测屏保进程 检测到屏保就自动关机
运行后就是关不了机
请各位大侠给我答案
[ Last edited by 418180315 on 2011-1-9 at 17:08 ]
tasklist >c:\1.txt
find /i "SCR" c:\1.txt
if ERRORLEVEL 0 (shutdown -s -t 0) else ping 127.1 -n 10 >nul 2>nul
goto ss
这个批处理不知道什么地方出问题
我想要的功能是tasklist检测屏保进程 检测到屏保就自动关机
运行后就是关不了机
请各位大侠给我答案
[ Last edited by 418180315 on 2011-1-9 at 17:08 ]
