1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

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

Discussion in 'Windows XP' started by mj0769, Dec 25, 2007.

Thread Status:
Not open for further replies.
Advertisement
  1. mj0769

    mj0769 Thread Starter

    Joined:
    Dec 25, 2007
    Messages:
    14
    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,
     
  2. stantley

    stantley

    Joined:
    May 22, 2005
    Messages:
    7,063
    Why not just change the sound scheme to 'No sounds' and stop all of the obnoxious MS sounds?
     
  3. devil_himself

    devil_himself

    Joined:
    Apr 7, 2007
    Messages:
    4,910
    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}"
    
    
     
  4. devil_himself

    devil_himself

    Joined:
    Apr 7, 2007
    Messages:
    4,910
    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
    
     
  5. mj0769

    mj0769 Thread Starter

    Joined:
    Dec 25, 2007
    Messages:
    14
    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
     
  6. mj0769

    mj0769 Thread Starter

    Joined:
    Dec 25, 2007
    Messages:
    14
    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.
     
  7. devil_himself

    devil_himself

    Joined:
    Apr 7, 2007
    Messages:
    4,910
    Glad We Could Help

    You Can Use The "Thread Tools" At The Top To Mark The Thread As "Solved"
     
  8. Sponsor

As Seen On
As Seen On...

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.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/664614