Windows Startup Sound - yet another way

D

Dave \Crash\ Dummy

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.

'================StartSound.vbs==============
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
wend
'=========================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top