用命令行軟體NirCmd控制Windows音量
軟體分x86和64bit的版本,下載地址在官網的最下面。 請大家自行前往下載使用。 NirCmd調整音量,有3個參數:changesysvolume,setsysvolume,mutesysvolume。 (1) changesysvolume: 調整音量,把當前音量增大或者減小的幅度,正數表示增大,負數表示減小。
NirCmd Command Reference
In the [action] parameter, specify 1 for mute, 0 for unmute, or 2 for switching between mute and normal state. The second parameter is optional, and you can specify one of the following sound components: master, waveout, synth, cd, microphone, phone, aux,
Change Windows sound volume via the command line
There's user-friendly interactive script I made for simplification that depends on nircmd. Having read these posts and having looked for alternatives I decided to write my own command line utility, called SetVol, to set the volume.
nircmd 外部命令如何关闭音量控制里的某一项呢?
Mute/unmute the system volume. In the [action] parameter, specify 1 for mute, 0 for unmute, or 2 for switching between mute and normal state. The second parameter is optional, and you can specify one of the following sound components: master, waveout, syn