Change volume or mute it

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
ExSpirit
Posts: 2
Joined: 01 May 2010 17:58

Change volume or mute it

#1 Post by ExSpirit » 01 May 2010 17:59

Is there any way to mute/unmute the sound or change volume with batch file?

1+2=46
Posts: 25
Joined: 23 Mar 2010 14:19

Re: Change volume or mute it

#2 Post by 1+2=46 » 01 May 2010 18:59

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))

phillid
Posts: 109
Joined: 03 Apr 2010 20:27
Location: Wellington, New Zealand
Contact:

Re: Change volume or mute it

#3 Post by phillid » 01 May 2010 20:04

How do you un-mute it with VBS??

1+2=46
Posts: 25
Joined: 23 Mar 2010 14:19

Re: Change volume or mute it

#4 Post by 1+2=46 » 01 May 2010 20:13

phillid wrote:How do you un-mute it with VBS??


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

ExSpirit
Posts: 2
Joined: 01 May 2010 17:58

Re: Change volume or mute it

#5 Post by ExSpirit » 02 May 2010 02:44

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?

Post Reply