最好能指定时间段内循环脚本,超出指定时间段不循环.比如22:30至7:30时间段内运行程序.
@echo off rem 该批处理放在启动中即可 if %time:~0,5% geq 22:30 if %time:~0,5% leq 23:59 start "" "c:\hello.exe" rem 22:30-23:59之间启动悔乎培"c:\hello.exe" if %time:~0,5% geq 0:00 if %time:~0,5% leq 7:30 start "碧唯" "c:\hello.exe" rem 0:00-7:30之间启动"顷明c:\hello.exe"