nircmd 的作用就是通过命令行控制 windows 的很多设置。如果你想要命令行控制一些系统设置,可以来这找找看。
https://www.91yun.co/wp-content/uploads/2020/01/e124887f91f6dfb-300x270.png 300w, https://www.91yun.co/wp-content/uploads/2020/01/e124887f91f6dfb-768x691.png 768w" sizes="(max-width: 873px) 100vw, 873px" data-tag="bdshare" style="border: 0px; margin: 0px auto; display: block;"/>
nircmd-windows 的官网: https://www.nirsoft.net/utils/nircmd.html
静音的代码非常简单: nircmd.exe mutesysvolume 1
我们可以做一个 bat 的批处理命令 静音 .bat
输入: F:\soft\nircmd\nircmd.exe mutesysvolume 1
然后通过计划任务设置为每天晚上 10 点 30 分运行,就完美啦。
计划任务的入口在: 资源管理器》我的电脑,右键》管理
https://www.91yun.co/wp-content/uploads/2020/01/535be2fd702cca3-300x83.png 300w" sizes="(max-width: 428px) 100vw, 428px" data-tag="bdshare" style="border: 0px; margin: 0px auto; display: block;"/>
https://www.91yun.co/wp-content/uploads/2020/01/6a3e75518144fad-300x95.png 300w, https://www.91yun.co/wp-content/uploads/2020/01/6a3e75518144fad-768x243.png 768w" sizes="(max-width: 988px) 100vw, 988px" data-tag="bdshare" style="border: 0px; margin: 0px auto; display: block;"/>
https://www.91yun.co/wp-content/uploads/2020/01/8fc021fddfa29d7-300x260.png 300w, https://www.91yun.co/wp-content/uploads/2020/01/8fc021fddfa29d7-768x666.png 768w" sizes="(max-width: 780px) 100vw, 780px" data-tag="bdshare" style="border: 0px; margin: 0px auto; display: block;"/>https://www.91yun.co/wp-content/uploads/2020/01/44d10535215a53e-300x283.png 300w" sizes="(max-width: 669px) 100vw, 669px" data-tag="bdshare" style="border: 0px; margin: 0px auto; display: block;"/>