Command Line Mute
Your laptop just makes the familiar “oh-oh” sound. You know you have an instant message in ICQ.
The problem is, it’s 5:30 in the morning right now… Indeed you forgot to turn off your speaker the night before.
It doesn’t have to be like this.
The one last time this happened to me, I decided to fix this problem once and for all. So I wrote a command line utility that lets me mute and un-mute my computer speaker. Couple this with the Task Scheduler in Windows, my laptop knows when to keep quiet. ![]()
Usage: cmdmute [0|1]
0 - Mute OFF
1 - Mute ON
Toggle if no argument is given.
Update on 2007-01-30: Source posted. Compile it with cl cmdmute.cpp winmm.lib.
So I was going to google to find out if there was some command I can run to mute the speaker. I didn’t think I’d find anything, let alone an actual application that can easily be put into Windows Tasks. Excellent script! Thanks a lot!
- Adam
Great job!
Thanks for the util.
One step better would be if the command could be used to report the current setting. That way a script that needs to mute could not unmute if it was mute before the script runs. Maybe:
cmdmute check
Great program. Thanks.
I have a shared computer in my office and I really want the sound off, while most of my colleagues like the sound on.
A shortcut to your file in the startup folder and everyone can set his preference. Great! (thanks to google)
Great thing, many thanks to the author! But also could you share the secret - I mean, the original script source?
No problem. See the update above.
Great App. I chucked it into a batch script wich runs each time i log on to mute my laptop. No more IM noice in lectures…
its a simple shortcut on my start menu to unmute it when i want things back on again.
Thanks!
Sweet this is exactly what i was looking for
thanks!
Sweeet!! This is what i was looking for. Thanks for the utility and sharing the code too
Cheers
/\/ishanth
I was about to write my own, just wanted to check did anyone make it before… I downloaded it, still didn’t check it, but i’m sure it works
Thanks!
Thanks for this nice application mate. Very sweet indeed. Thanks loads.