Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Nov 8 '10 at 14:07

This question came from our site for professional and enthusiast programmers.

I also had to resort to a writing a custom app to mute or change my volume by command line. – Psychoholic Nov 8 '10 at 16:07
up vote 3 down vote accepted

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.

share|improve this answer
Ahh awesome, thanks :) – Blam Nov 8 '10 at 17:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.