Help with opening music file

Parshaman
08-04-2006, 02:03 PM
I am a newbie but I love vb and I would like to have music playing when I push a button. I currently have Itunes that stores my music. What is the code to play music within Itunes?
Thank You
J

Samapico
08-04-2006, 02:12 PM
hm, that would be interesting... if you dont want Itunes to be opened at all and have just VB play the music, I'm guessing you need to read a playlist file to have each file's path, and then you'd need something to be able to read mp3's...
I don't know more than that, but I'd like to be able to do that too...

twychopen22
08-04-2006, 03:34 PM
Dim stAppName As String
stAppName = "C:\Windows\.... 'whatever your path is
Call Shell (stAppName, 1)

This is not the whole code by any means. This is something I borrowed from someone else to call programs in windows. This will only bring up itunes, I am not sure how you would call an exact file. I'm sure others know how.

Samapico
08-04-2006, 07:51 PM
there must be some way to play mp3 files directly from vb... that would be cool

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum