1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Windows Startup Sound - yet another way

Discussion in 'Windows 7' started by Dave \Crash\ Dummy, Mar 28, 2010.

  1. Dave \Crash\ Dummy

    Dave \Crash\ Dummy Flightless Bird

    I swiped the script below from a VBScript newsgroup and tried running it
    as a "Startup" program. Works fine and is simpler and more direct than
    the HTA script I posted earlier.

    Set wmp = CreateObject("WMPlayer.OCX")
    wmp.settings.autoStart = True

    'set volume 0 to 100
    wmp.settings.volume = 100

    'Enter pathname of desired startup sound.
    wmp.URL = "c:/windows\media\close022.wav"

    'wait til it stops
    while wmp.Playstate <> 1
    WSH.Sleep 100

    "It is not necessary to change. Survival is not mandatory."
    ~ W. Edwards Deming ~

Share This Page