Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-27-2012, 07:25 PM   PM User | #1
maxpouliot
New Coder

 
Join Date: Mar 2006
Posts: 90
Thanks: 2
Thanked 0 Times in 0 Posts
maxpouliot is an unknown quantity at this point
Play sound files

Hi,

i'm trying to play 1 or multiple sound files in vbscript... Search the net but found nothing that workds.

Can anybody help me?
maxpouliot is offline   Reply With Quote
Old 08-27-2012, 08:06 PM   PM User | #2
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
to the best of my knowledge- there is no way to "play" a sound in vb. You could find files or specify files to be played and then use VB to call the appropriate program...

for example, you could select the files and then command windows explorer to open them- windows explorer will open them w/ whatever program is allocated (ex if you have media player set as default mp3 files, win explore will open them with media player)...

or you could change the system sound for alert and then issue several system alerts...

again, I do not know of (nor can I think of a way) that VB could read and produce sound though
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote
Old 09-06-2012, 06:01 AM   PM User | #3
Coding Start
New Coder

 
Join Date: Jul 2012
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Coding Start can only hope to improve
I don't know how well this will post, but here is a script that I have that can be used to play a beep.

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd /c @echo "
Coding Start is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:00 AM.


Advertisement
Log in to turn off these ads.