系统定时关机脚本
编写bat脚本
@echo on@echo 为保障您的身体健康,请不要长时间使用计算机。。。。set CURRTIME=%time:~0,2%set TIMEFLAG=FALSE@rem 当前时间:%time:~0,2%点%time:~3,2%分%time:~6,2%秒@echo %CURRTIME%@rem IF "%CURRTIME%" == "12" SET TIMEFLAG=TRUE@rem IF "%CURRTIME%" == "21" SET TIMEFLAG=TRUEIF "%CURRTIME%" == "22" SET TIMEFLAG=TRUEIF "%CURRTIME%" == "23" SET TIMEFLAG=TRUEIF "%CURRTIME%" == "0" SET TIMEFLAG=TRUEIF "%CURRTIME%" == "1" SET TIMEFLAG=TRUEIF "%CURRTIME%" == "2" SET TIMEFLAG=TRUEIF "%CURRTIME%" == "3" SET TIMEFLAG=TRUEIF "%CURRTIME%" == "4" SET TIMEFLAG=TRUEIF "%CURRTIME%" == "5" SET TIMEFLAG=TRUEIF "%CURRTIME%" == "6" SET TIMEFLAG=TRUE:shutsysIF "%TIMEFLAG%" == "TRUE" shutdown /f /s /t 0@ rem @pause@echo off
配置计划任务
如果觉得《计划任务定时关机》对你有帮助,请点赞、收藏,并留下你的观点哦!