I would like to know how do I embed Mediaplayer within VBscript so that a particular audio runs on clicking the script file? This is a stand alone script which I am not using it in any html scripts.
Audio="""\path\to\audio file.mp3"""
Set Sh=CreateObject("WScript.Shell")
Set X=Sh.Exec("%COMSPEC% /C Start /min /wait " & Audio)
' Your stuff here
X.Terminate
WScript.Quit
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.