Jump to content

my playlist generating script


DLSS

Recommended Posts

yeah i was bored and didnt find any online so made my own :P

just place it in the directory you want to create a playlist from

you can change and add the extensions it searches for if you want ...

O and if you want to remove credits go ahead :) , just dont replace em :( thats all i ask ...

@echo off
color 0a
title playlist generator by DLSS
echo.
echo   playlist generator by DLSS  (posted originally on hak5.org)
echo my homepage : http://DLSS.co.nr
echo ------------------------------------------------------------------------
echo current directory is %cd%
echo.
set /p file=what should the playlist be called ?:
: test-audio
if exist *.mp3 (goto music) else (if exist *.wma (goto music) else (goto test-video) )
: test-video
if exist *.divx (goto video) else (if exist *.avi (goto video) else (if exist *.wmv (goto video) else (goto end) ) )

: music
title playlist generator by DLSS / generating %file% (audio) playlist
: m3u
echo.#generated with DLSS's playlist generator >> "%file%(a).m3u"
echo. >> "%file%(a).m3u"
dir "*.mp3"/b >> "%file%(a).m3u"
dir "*.wma"/b >> "%file%(a).m3u"
goto test-video
: video
title playlist generator by DLSS / generating %file% (video) playlists
: bsl
echo.#generated with DLSS's playlist generator >> "%file%.bsl"
echo. >> "%file%.bsl"
dir "*.avi"/b >> "%file%.bsl"
dir "*.divx"/b >> "%file%.bsl"
dir "*.wmv"/b >> "%file%.bsl"
: m3u
echo.#generated with DLSS's playlist generator >> "%file%(v).m3u"
echo. >> "%file%(v).m3u"
dir "*.avi"/b >> "%file%(v).m3u"
dir "*.divx"/b >> "%file%(v).m3u"
dir "*.wmv"/b >> "%file%(v).m3u"
: end
cls
exit

the slexy : http://slexy.org/view/s2T8ITtLEp

greetz, DLSS

Link to comment
Share on other sites

dir *.mp3 /b /on > PLS.m3u

Put that in a bat file anywhere on the pc, like in c:pls.bat

Then, go into any folder and follow the images instructions:

width=743 height=688http://www.twistedpairrecords.com/digip/pls.jpg[/img]

Just modify the line for applicatiosn used ot perform action to point to wher eyou stored the pls.bat file.

This was one of the first things I posted on the forums when I first started on here. :)

Link to comment
Share on other sites

  • 2 weeks later...

pfft..just bought a new pc and trie dthis in Vista. No options to do ith through the explorer shell, but I did manage to find a way to do it through the registry, and its similar to XP but not located in the same place.

Open regedit, go to key: HKEY_CLASSES_ROOTSystemFileAssociations.mp3

Now add a new Key under .mp3 called shell, then one under that called edit.m3p

It should now look somehting like this: HKEY_CLASSES_ROOTSystemFileAssociations.mp3shelledit.mp3

Under edit.mp3 in the right pane, for default enter "Create PLS File"

Then under key edit.mp3 add one called command: HKEY_CLASSES_ROOTSystemFileAssociations.mp3shelledit.mp3command

Under command in the right pane, enter "c:pls.bat" "%1" for the default value, pointing the the bat script in my previous post, saved as c:pls.bat

Then when you right click an mp3 file in Vista, you can now do the little pls trick to automatically create a pls.m3u of all the files in the current folder. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...