Board logo

标题: [系统相关] 批处理怎样实现电脑空闲30分钟后就关机? [打印本页]

作者: FU586097    时间: 2023-10-13 12:11     标题: 批处理怎样实现电脑空闲30分钟后就关机?

各位老师 能帮忙写一个电脑空闲30分钟后就关机的程序吗  谢谢
作者: Batcher    时间: 2023-10-13 15:50

回复 1# FU586097


test.bat
  1. @echo off
  2. schtasks /create /tn "MyShutdown" /tr "shutdown /s /f /t 0" /sc onidle /i 30 /ru System
复制代码

作者: FU586097    时间: 2023-10-13 18:18

回复 2# Batcher


  谢谢 师傅




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2