If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
Windows Startup Sound - yet another way
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 '========================================= -- Crash "It is not necessary to change. Survival is not mandatory." ~ W. Edwards Deming ~ |
Ads |
Thread Tools | |
Display Modes | Rate This Thread |
|
|