@echo off
if %time% lss 00:00:00.00 goto 0_9 rem 0点
if %time% gtr 23:59:59.99 goto 0_9 rem 3点至9点
if %time% gtr 09:59:59:99 goto if1 rem 1点
if %time% gtr 19:59:59:99 goto if2 rem 2点
goto 10_23
:if1
if %time% lss 10:00:00:00 goto 0_9
goto 10_23
:if2
if %time% lss 20:00:00:00 goto 0_9
goto 10_23
:0_9
if %time% lss 6:00:00:00 goto exec
goto end
:10_23
if %time% gtr 21:30:00:00 goto exec
goto end
:exec
call shutdown /s /t 00
:end
exit