PDA

View Full Version : Get Playlist Filename


mborz
14th April 2008, 14:50
I have a feeling there's an easy answer to my question, but I just don't seem to be able to find it.

I want to send a command to Winamp and have it return the filename (full path) of the currently loaded playlist to me. The return value would be something like "C:\playlists\rock\classic_rock.m3u"

I've seen (and used) some of the commands to get the filename information for individual songs, but I can't seem to find how to get the same type of information for the playlist itself.

Thanks

DrO
14th April 2008, 16:25
winamp doesn't track what playlist a file has been loaded from, if it's in the playlist editor then it's just a list of files with no history back to the file it came from. as such if you use IPC_WRITEPLAYLIST then you force winamp to save out it's winamp.m3u/winamp.m3u8 file to either %winampdir%\winamp.m3u/m3u8 or to %appdata%\winamp\winamp.m3u/m3u8 (though you'd really need to look at/for paths.ini to see what is the exact case with the install that you're working with).

-daz

mborz
14th April 2008, 17:04
Got it. Thanks for the response. I was hoping to look at the path/name of the playlist and infer some information about it.