MUTE the speaker volume?

  • Thread starter Thread starter RDI
  • Start date Start date
I take it that there's not a DLL in Windows that does it? I had hoped to
use rundll32.exe to do it from a command line--I didn't want to DL software
to do it.
 
Does anyone know how to mute (and un-mute) the speakers from the command
line?

Found in:
<http://groups.google.com/[email protected]>
Save the following vbscript as "mute.vbs":

set oShell = CreateObject("WScript.Shell")
oShell.run"Sndvol32"
WScript.Sleep 1500
oShell.SendKeys"{TAB 2} "
oShell.SendKeys"%{F4}"

Run the script from the command line like this:
cscript mute.vbs
 
Back
Top