Can VB add files to winamp's playlist?

Is there any way using the shell command or Windows API to add mp3 files to winamp's playlist?

I've tried using the shell command but Winamp won't accept the path variable containing the filename to add to the playlist.

Comments

  • : Is there any way using the shell command or Windows API to add mp3 files to winamp's playlist?
    :
    : I've tried using the shell command but Winamp won't accept the path variable containing the filename to add to the playlist.
    :


    if U mean the .m3u playlist then it's very simple.
    Just open the playlist file with Open command and
    prin the song names in the file. Here's an example
    of this. For example, if my song files are in folder
    'C:My Music', my playlist file is 'C:My Musicpl.m3u'
    and I want to add songs 'C:My Musicabc.mp3' and
    'C:My Musicartistla.mp3' to my playlist.
    then I use that script to open .m3u file:

    dim x as string 'declare a variable
    open "C:My Musicpl.m3u" for append as #1 'open playlist file
    x = "abc.mp3"
    print #1, x 'write the first song
    x = "artistla.mp3"
    print #1, x 'write the 2nd song
    close #1

    That's it !

    You can also open the .m3u file with Notepad. Then you can see
    that song files are just listed under each other.
    The lines starting with symbol '#' are just comments and
    unnecessary. Hope that helps U.

  • I actually meant is there anyway to have Winamp open, and add files to the playlist directly from VB. So that VB can make new files appear in the Winamp playlist and Winamp can play them?


  • : I actually meant is there anyway to have Winamp open, and add files to the playlist directly from VB. So that VB can make new files appear in the Winamp playlist and Winamp can play them?
    :
    :
    I must confess that I'm not so smart at VB yet. Try the forum at www.a1vbcode.com.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories