Computing.Net > Forums > Programming > Create Batch File For Playlist

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Create Batch File For Playlist

Reply to Message Icon

Name: bulleke
Date: April 7, 2005 at 09:17:33 Pacific
OS: Windows XP
CPU/Ram: 128 MB
Comment:

How can I create a batchfile that searches every FILE that begins with "a" or "the a" and ends on ".mp3"
And then puts those files in "a.m3u" sorted by title of the mp3-file
example of 2 files
-------
#EXTM3U
#EXTINF:A Ghost Between Us - Nightwish
N\Nightwish\A Ghost Between Us.mp3
#EXTINF:A Movie Script Ending - Dead Cab For Cutie
D\Dead Cab For Cutie\A Movie Script Ending.mp3
-------

it should create
#EXTINF: title - artist
path without f:/audio



Sponsored Link
Ads by Google

Response Number 1
Name: bulleke
Date: April 9, 2005 at 05:07:26 Pacific
Reply:

I found out that I only need
--
N\Nightwish\A Ghost Between Us.mp3
D\Dead Cab For Cutie\A Movie Script Ending.mp3
--
Now I have
--
@ECHO processing a.m3u
@dir /b /s "a*.mp3" "the a*.mp3" > a.m3u
cls
--
but that gives
--
F:\audio\N\Nightwish\A Ghost Between Us.mp3
F:\audio\D\Dead Cab For Cutie\A Movie Script Ending.mp3
--
and it should be without
F:\audio

But I don't know how to do that


0

Response Number 2
Name: Kurdy
Date: April 15, 2005 at 14:06:51 Pacific
Reply:

This one creates playlist.m3u for all *.mp3 in all subdirs and places it in that subdir.

for /R %%A in (*.mp3) do @echo %%~nxA >> "%%~dpAplaylist.m3u"


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


DOS Batch FIles mobile agent



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Create Batch File For Playlist

create batch file www.computing.net/answers/programming/create-batch-file/16262.html

Batch file for Outlook www.computing.net/answers/programming/batch-file-for-outlook/15439.html

batch file help www.computing.net/answers/programming/batch-file-help/17094.html