• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

Windows Startup Sound - yet another way


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 ~