Author Topic: Add 'Make Playlist(s)' to folder contect menu  (Read 5999 times)


  • Hero Member
  • *****
  • Posts: 627
  • Long live OiNK!
This is taken from another forum but it's handy if you download or rip music and for whatever reason it doesn't have an M3U playlist file and you like to have one. The playlist this script will create will be named 'Folder Name.M3U' for the files contained within the folder.

1. Copy this preformatted text exactly:

@echo off
chcp 1252
cd %1
echo %~f1
dir /on/b *.mp3 *.flac *.m4a > "%~nx1.m3u"

and paste it into a new text document. Rename it makeplaylist.bat and put it in C:\

2. Next copy this preformatted text exactly:

Windows Registry Editor Version 5.00

@="Make playlist(s)"

@="cmd /C C:\\makeplaylist.bat \"%L\""

and paste it into a new text document. Rename it to makeplaylist.reg and double-click it. You must be logged on as administrator.

That's it! Now you can right-click any folder or up to 15 folders and make playlists appear inside all of them; they will be named the-folder-name.m3u. If the option doesn't appear immediately, restart your PC.

If you don't want to make your own files, I (read: the original writer of this tutorial) have uploaded the two files in a zip here:

Note for dummies: you don't right-click inside the folder you want to make a playlist for, you have to go up a level to the parent folder, then right-click it.

Notes for everyone else: you can add whatever file types you want, add *.ogg , *.ape , anything.
The default number of folders this will work on is 15, but you can increase this by following these instructions: However: 16 doesn't = infinity, despite what it says. Create a MultipleInvokePromptMinimum key and set it to 50 (decimal) and you can make Playlists for 50 folders.
The folder name character limit in Windows 7 Ultimate is 120; other versions may have different limits. Don't use folder names this long anyway!
chcp 1252 ensures characters with accents (like éçèßý) are correctly written in the playlist.
You can move the makeplaylist.bat file to anywhere you like, but make sure the correct path is in the registry key.
It overwrites m3us (with the exact same name) without prompting.
To remove this feature: just delete it with Regedit.
I've tested this in Windows XP 32 Bit and 7 Ultimate 64 bit.

I've recently joined -
Feel free to add me if you wish :)

EAC V1.0 beta 3 can be downloaded here
And a full guide on setting it up and ripping a CD can be here


  • Guest
This is a great little addition for making a quick simple playlist...

However what would be really good would be to have the Album Artist included at the front, especially it you've got a lot of Greatest Hits albums...


  • Administrator
  • Hero Member
  • *****
  • Posts: 33600
just to add to this with some info from Anti - if you want to play more than 16 files from windows explorer:
XP gave you a warning about running out of memory if you were about to process too many files.
This hard limit was introduced in Vista/Win7, and effects everything (Eg printing, opening, etc).

The following registry value may be modified to choose the number of files that may be selected
while maintaining the context menu options.

Name : MultipleInvokePromptMinimum
Type : DWORD
Range: 1 - 16 (decimal)
Default : 15 (decimal)

A value of 16 is interpreted as "unlimited".