是否可以通过命令行界面使计算机静音?[重复]


12

目前,我可以按键盘上的静音按钮,以关闭声音。是否可以通过cmd.exe来执行此操作,以便我可以将其与该程序中的其他内容一起运行?

Answers:


11

不能直接通过命令行将其静音,否。但是您可以使用命令行实用程序(例如NirCmd)来实现相同的功能。nircmd.exe mutesysvolume 1仅从cmd 运行将使音频静音。例如,如果您要一次执行多个操作,则可以通过批处理脚本轻松地执行此操作。


第三方应用程序?
— user25

是。使用PowerShell可以实现,但更麻烦。
— Typherix '18
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.