[pmmail-list] Filter question

Hahn Gerhard pmmail-list@blueprintsoftwareworks.com
Wed, 16 Oct 2002 01:00:28 +0200


On Tue, 15 Oct 2002 14:20:11 -0700, Tim Roberts wrote:

>>Maybe you can write a short BASIC script to get some better speaker
>>sound?
>
>BASIC isn't standard on Win32, either.
>....

Beside the fact, that I've defined WinAmp as my dft.Programm for *.wav, 
it  could be something like this:

'********************************************************************
'* File:        playsound.vbs
'* Created:     October 2002
'* Version:     1.0   
'*
'* Copyright (C) 2002  by rooster   ;-)) feel free to improve this
'********************************************************************

OPTION EXPLICIT
Dim strCommand, objWshShell
Dim result
'construct the commandstring
strCommand = "cmd.exe /K ""C:\WINNT\Media\Windows Logoff Sound.wav"""  'construct the command
' get an shell object			
Set objWshShell = CreateObject("Wscript.Shell")
'run the command
result = objWshShell.Run (strCommand ,0)	'1 = Activates and displays a window. 
'check the result
if(result) = 0 Then	'everything is OK
	msgbox "Ois leiwaund!"
Else		'something bad happend
	MsgBox "do hot's wos"
End if
wscript.Quit

baba

gerhard

- pmmail-list - The PMMail Discussion List ---------------------------
To POST to the list, send your message to:
pmmail-list@blueprintsoftwareworks.com

To UNSUBSCRIBE, send a message to mdaemon@bmtmicro.com 
with the first line of the message body being...
UNSUBSCRIBE pmmail-list@blueprintsoftwareworks.com
---------------------------------------------------------------------