|
-
May 26th, 2005, 08:55 AM
#1
Thread Starter
New Member
running m3u's with VB6
why hello there...
ok small question: im making a program that i can use to easily open other programs and music playlists, and i was wondering:
how do you open an m3u file from a visual basic program?
i can shell EXEs, but for some reason it wont let me for a playlist...
any suggestions?
-
May 26th, 2005, 09:01 AM
#2
Re: running m3u's with VB6
If there is a program associated with .m3u files you can use ShellExecute to open it using that program.
Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) _
As Long
'Open the .m3u file, needs to be placed in a form or UserControl
ShellExecute Me.hWnd, "open", [FilePath], vbNullString, "C:\", 0&
-
May 26th, 2005, 10:07 AM
#3
Frenzied Member
Re: running m3u's with VB6
You could also try to call the .exe that has to open the file with the filepath as a commandline parameter.
Like: "c:\winamp\winamp.exe songs.m3u"
-
May 26th, 2005, 11:35 AM
#4
Thread Starter
New Member
Re: running m3u's with VB6
much appreciated
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|