I'm using the NirCmd utility to set the audio volume via the command prompt for a game but need to know what the current volume is upon the app start up.
I found this question: Change Windows sound volume via the command line which also mentions NirCmd but doesn't mention how to use it to get the current volume.
I've tried getvol master
, but I get the error getvol
is not recognized.
How can I get the current audio volume either using native Windows commands or NirCmd?
nircmd.exe changesysvolume 2000
andnircmd.exe changesysvolume -2000
.