Page 1 of 1

Change volume or mute it

Posted: 01 May 2010 17:59
by ExSpirit
Is there any way to mute/unmute the sound or change volume with batch file?

Re: Change volume or mute it

Posted: 01 May 2010 18:59
by 1+2=46
For batch, I don't know.
But you can always make your batch file start a .vbs script that mutes the sound.

.vbs script code:

Code: Select all

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

Re: Change volume or mute it

Posted: 01 May 2010 20:04
by phillid
How do you un-mute it with VBS??

Re: Change volume or mute it

Posted: 01 May 2010 20:13
by 1+2=46
phillid wrote:How do you un-mute it with VBS??


Just paste in my previous code in a .vbs script.

Re: Change volume or mute it

Posted: 02 May 2010 02:44
by ExSpirit
Just what I need. Thank you :)

Oh, just ome more thing. Is there any way to check if mute already exist? Because now if I already have mute and run this mute is off istead of on?