
标题: [文件操作] 求win10下一分钟无操作显示器自动休眠的批处理,谢谢 [打印本页]
作者: q584541264 时间: 2021-4-1 10:53 标题: 求win10下一分钟无操作显示器自动休眠的批处理,谢谢
求大神帮忙写一个win10下一分钟无操作显示器自动休眠的批处理,谢谢
作者: smss 时间: 2021-4-1 17:11
设置—系统—电源和睡眠就可以完成你要的
批处理无法检测电脑是否操作
可用shutdown -h实现休眠
使用nircmd实现睡眠
作者: Batcher 时间: 2021-4-2 11:02
回复 2# smss
楼主想要的可能是这个效果:- @echo off
- powercfg /change /monitor-timeout-ac 1
- powercfg /change /monitor-timeout-dc 1
复制代码
作者: q584541264 时间: 2021-4-2 11:36
回复 3# Batcher
厉害啊老哥,棒,就是这个效果
作者: newgain 时间: 2021-4-3 00:27
回复 3# Batcher
怎么设置为永久不休眠呢
作者: Batcher 时间: 2021-4-3 20:52
回复 5# newgain - @echo off
- powercfg /change /monitor-timeout-ac 0
- powercfg /change /monitor-timeout-dc 0
复制代码
作者: newgain 时间: 2021-4-3 23:00
本帖最后由 newgain 于 2021-4-3 23:03 编辑
回复 newgain
Batcher 发表于 2021-4-3 20:52 
谢谢 刚查一下
- powercfg /change /monitor-timeout-ac 0 交流电
- powercfg /change /monitor-timeout-dc 0 直流电
- 原来以为是重复两次呢
欢迎光临 批处理之家 (http://bbs.bathome.net/) |
Powered by Discuz! 7.2 |