Hi folks,
I'm trying to copy the files referenced in an m3u playlist to an external drive.
Example 1: mylist.m3u may contain
title 1.mp3
title 2.mp3
title 3.mp3
All mp3 files are stored in the same directory as the playlist. I want to select the playlist file, click, and automatically copy the playlist as well as all the relevant mp3 files to the destination lister. Obviously, I can write a script to parse the playlist and do the copying, but is there a more elegant way? I found the discussion on selecting files from a list (Select files from list, in text file or clipboard), but that isn't exactly the same thing.
Example 2: myotherlist.m3u may contain
[code]title 1.mp3
..\next directory\title 2.mp3
comment line
c:\music\title 3.mp3
[/code]
That is, there may be a) no path, b) a relative path, or c) an absolute path used for the individual mp3 files. I don't want to recreate the folder structure in the destination folder, just copy all files to one directory. Obviously, comment lines need to be skipped...
Any ideas?
Thanks a lot,
MartO