【Windows电脑】
1、通过系统设定,进入任务计划程序创建基本任务
【路径:右键此电脑-管理 或 开始-Windows系统-控制面板-管理工具-任务计划程序 或 WIN+R打开命令窗口内输入taskschd.msc】
2、 通过dos命令进行设置
at 20:00 Shutdown -s ,表示20点自动关机
shutdown -s -t xx ,xx代表倒计时间,单位为秒。如shutdown -s -t 3600 表示60分钟后关机
Slidetoshutdown 滑动关机
shutdownn -a 取消自动关机
3、通过新建批处理文件进行设置
新建记事本,内容为shutdown -s -t xx ,xx代表倒计时间,单位为秒。
如shutdown -s -t 3600 表示60分钟后关机,保存时后缀为.bat,需要时点开使用即可。
【Mac电脑】
1、通过系统设置,进入节能器设置定时任务
【路径:Dock栏-系统偏好设置-节能器-定时 或 Command + 空格键打开 Spotlight 搜索节能