Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Windows XP Windows XP
Search Search
Search for:
Tech Support Guy > > >

Solved: Need help with creating a batch file to adjust volume


(!)

mj0769's Avatar
mj0769 mj0769 is offline
Computer Specs
Junior Member with 14 posts.
THREAD STARTER
 
Join Date: Dec 2007
Experience: Intermediate
25-Dec-2007, 11:21 AM #1
Solved: Need help with creating a batch file to adjust volume
I'm trying to write a simple batch file that would mute or turn down the volume at startup. The idea is to stop the obnoxious MS startup tune when booting up in a place where I don't want attention; i.e. on a plane, in a meeting, classroom, etc. As a techie I'm way too lazy and forgetful to mute the sound before logging off everytime and would much rather write a complicated script to do this.

ps. why don't laptop makers install the old toggle volume switches?? click=on, off.. it would be such a simple solution to this..

thanks,
stantley's Avatar
Computer Specs
Member with 6,927 posts.
 
Join Date: May 2005
Location: Pittsburgh PA USA
Experience: Advanced
25-Dec-2007, 11:36 AM #2
Why not just change the sound scheme to 'No sounds' and stop all of the obnoxious MS sounds?
devil_himself's Avatar
Member with 4,910 posts.
 
Join Date: Apr 2007
Location: India
Experience: Advanced
25-Dec-2007, 12:18 PM #3
After Playing around i made it working .. but it is a Vbscript

Code:
set WshShell=createobject("wscript.shell")
WScript.Sleep 1000
WshShell.run "sndvol32"
WshShell.AppActivate "Volume Control"
WScript.Sleep 1000
WshShell.SendKeys("{TAB}{TAB}")
WScript.Sleep 1000
WshShell.SendKeys(" ")
WScript.Sleep 1000
WshShell.AppActivate "Volume Control"
WshShell.sendkeys "%{f4}"
devil_himself's Avatar
Member with 4,910 posts.
 
Join Date: Apr 2007
Location: India
Experience: Advanced
25-Dec-2007, 12:24 PM #4
Ok .. Here's a Logon Script ...

Place It In a Batch or CMD file

Code:
REG ADD "HKCU\AppEvents\Schemes\Apps\.Default\SystemStart\.Current" /ve /d "" /t REG_SZ /f
mj0769's Avatar
mj0769 mj0769 is offline
Computer Specs
Junior Member with 14 posts.
THREAD STARTER
 
Join Date: Dec 2007
Experience: Intermediate
25-Dec-2007, 01:33 PM #5
Hey Thanks.. they're some great ideas that I can try, and all very different options.

thanks again, be sure to log off and enjoy the holiday..

-Mike
mj0769's Avatar
mj0769 mj0769 is offline
Computer Specs
Junior Member with 14 posts.
THREAD STARTER
 
Join Date: Dec 2007
Experience: Intermediate
25-Dec-2007, 06:26 PM #6
just a quick follow up.. I tried both of your suggestions.
Stantley: I like your thinking..it was a quick and simple fix. In all the time I've been in IT I never messed around with sounds and schemes. I changed the logon and logoff sounds to a simple click and it was done.

Mr. Devil: I put the REG ADD in a batch file to run at startup and it works great, exactly what I had in mind. I was thinking it would mute all the sound by default but it booted up quiet and was ready to go. that was brilliant!

Thanks again to you both. have a great holiday season.
devil_himself's Avatar
Member with 4,910 posts.
 
Join Date: Apr 2007
Location: India
Experience: Advanced
25-Dec-2007, 08:43 PM #7
Glad We Could Help

You Can Use The "Thread Tools" At The Top To Mark The Thread As "Solved"
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑