Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2006
    Thanked 0 Times in 0 Posts

    Play sound files


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

    Can anybody help me?

  2. #2
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Thanked 210 Times in 209 Posts
    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

  3. #3
    New Coder
    Join Date
    Jul 2012
    Thanked 0 Times in 0 Posts
    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 "


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts