Best way to play wav-files with WSH 
Author Message
 Best way to play wav-files with WSH

Whats the best way to play wav-files with WSH.

Thanks
Michell



Sun, 15 Sep 2002 03:00:00 GMT  
 Best way to play wav-files with WSH

Dim Shell,WaveFile
WaveFile = "c:\windows\media\ding.wav"
Set Shell = CreateObject("Wscript.Shell")
Shell.Run "sndrec32 /play /close """ & WaveFile & """",0,True


: Whats the best way to play wav-files with WSH.
:
: Thanks
: Michell
:
:



Sun, 15 Sep 2002 03:00:00 GMT  
 Best way to play wav-files with WSH
Use the approach Walter Zackery described, or have a look at WSHExtend.ocx
(downloadable from WSH Bazaar).
This module provides also some Methods to play sounds.

G. Born

Check out the WSH Bazaar at:

www.borncity.de


Quote:
>Whats the best way to play wav-files with WSH.

>Thanks
>Michell



Sun, 15 Sep 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. .vbs file to play a .wav if file size does not equal 0

2. Playing a .wav File from a .vbs File

3. Playing a WAV file in VBscript

4. Is it possible to Play and close a wav file using Soundrec32.exe

5. Need Help Playing WAV File

6. PLaying multiple .WAV files when page loads

7. Playing WAV files

8. How to play *.WAV files

9. Delaying in Playing WAV Files with Windows Media Player 9

10. Playing .wav file using EMBED tag object

11. Create a new .wav file from an existing .wav file based on the date

12. Create a new .wav file from an exisitng .wav file

 

 
Powered by phpBB® Forum Software