I guess that you could just use ECHO commands in your config to append to a playlist, e.g.:
ECHO $cdartist$ - $album$ [$date$]\$track$ - $title$.mp3>>@OutRoot@\Music\MP3\Playlists\$cdartist$ - $album$.m3u
You may have to escape some characters though, otherwise ampersands (for example) will cause problems. Certainly a possibility though.
Thanks, I did not realise the "#" was just a comment field in the m3u file.
I tried adding your echo command between "PushD" and "PopD" as I thought it was a loop so all I got was a playlist file in the correct place with only 1 file in it. (I use F10/image).
I also tried this...
DIR /B *.flac >> temp.txt
FOR %%f IN (temp.txt) DO (ECHO ..\$cdartist$ - $album$ [$year$]\%%f>>"..\++Playlists\$cdartist$ - $album$ [$year$].m3u")
...but it does not want to loop through the contents of the temp file but rather sees it as a literal.
It produces a file with only one entry.
"..\Enya - The Memory Of Trees [1995]\temp.txt"
The temp.txt contains.
01 - The Memory Of Trees.flac
02 - Anywhere Is.flac
03 - Pax Deorum.flac
04 - Athair Ar Neamh.flac
05 - From Where I Am.flac
06 - China Roses.flac
07 - Hope Has A Place.flac
08 - Tea-House Moon.flac
09 - Once You Had Gold.flac
10 - La Sonadora.flac
11 - On My Way Home.flac
Any ideas?
Just in case you're wondering, I had to add the "++" to the playlist directory in order to get it to be the top most directory. I do not feel like scrolling all the way to "P" to get to the playlist. It's possible that there is an better way, but the "++" should work.
Thanks again for the help.
Regards
Paul