1

I'm found no way via command prompt for some silly reason... My current solution of a small c# program pinvoking SendMessage (in user32.dll) I feel isn't quite the best way of going about making a shortcut to mute the volume on vista, but I have yet to find a simple solution.

1
  • I also had to resort to a writing a custom app to mute or change my volume by command line. Nov 8, 2010 at 16:07

1 Answer 1

3

According to this post:

Using VBscript you can control the master volume Mute with the following:

Set WshShell = CreateObject("WScript.Shell") WshShell.SendKeys(chr(173))

or (using Hex values)

Set WshShell = CreateObject("WScript.Shell") WshShell.SendKeys(chr(&hAD))

This sends the keycode value used by multimedia keyboards and is a toggle.

Just save it as a .vbs file and set up a shortcut to that file.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .