Results 1 to 4 of 4

Thread: running m3u's with VB6

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    4

    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?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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&

  3. #3
    Frenzied Member
    Join Date
    Oct 2003
    Posts
    1,301

    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"

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    4

    Talking 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
  •  



Click Here to Expand Forum to Full Width