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
'=========================================
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
'=========================================