Windows XP批处理文件中怎么判断时间?

2024-12-01 13:50:54
推荐回答(1个)
回答1:

@echo off
if %time:~0,2% EQU 5 shutdown -f -s -t 0 & exit
if %time:~0,2% EQU 6 (if %time:~3,2% LEQ 45 shutdown -f -s -t 0 & exit)