<pre id=\"best-answer-content\" class=\"reply-text mb10\">@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\"
<pre class=\"replyask-text\" id=\"content-4764202\">@echo off
rem 该批处理放在启动中即可
if %time:~0,5% geq 22:30 if %time:~0,5% leq 23:59 goto :hello
rem 22:30-23:59之间启动\"c:\\hello.exe\"
if %time:~0,5% geq 0:00 if %time:~0,5% leq 7:30 goto :hello
rem 0:00-7:30之间启动\"c:\\hello.exe\"
exit
:hello
start \"\" \"c:\\hello.exe\"
goto hello