Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Media Player

Status
Not open for further replies.

GRXboxers

Programmer
Feb 9, 2005
9
NL
Can I make a program with vbscript in notepad that opens automatically Windows Media Player with a song en plays it directly. I know it is a difficult question ,but can someone help me with this?

Thnx GRXboxers
 
Set WshShell = Wscript.CreateObject("Wscript.Shell")
WshShell.Run CHR(34) & "\path\to\music.mp3" & Chr(34)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top