# Create m3u files from multiple folders

**URL:** https://community.mp3tag.de/t/create-m3u-files-from-multiple-folders/19458
**Category:** General Discussion
**Created:** [October 20, 2017, 9:49pm UTC](https://community.mp3tag.de/t/create-m3u-files-from-multiple-folders/19458 "2017-10-20T21:49:58Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [October 21, 2017, 6:31am UTC](https://community.mp3tag.de/t/create-m3u-files-from-multiple-folders/19458/2 "2017-10-21T06:31:14Z")

</div>

> [@Edyedu](#):
>
> ... I would like to be able to create M3U files automatically for each folder in my music library. ... I want the Mp3tag to scan the folders in my library and make an M3U file of the MP3s in that folder and continue to the next one. Is this possible? Thank you!

This proposal should work ...  
[Playlisten mal so mal so? Export-Alternative: Helft ihr mir beim Code?](https://community.mp3tag.de/t/14307/3)

1. Create a Mp3tag export script text file, name it as you wish, ... having the following text content ...

**$filename(%\_folderpath%$replace(%ALBUM%' - '%ARTIST%,';',' -',':',' -')'.m3u',ansi)$loop(%\_filename\_ext%)%\_filename\_ext% $loopend()**
1. Load all folders and files into the Mp3tag list view ... and select all the files, which should be treated.  
(Note: while testing the script do it for one folder only.)

2. Execute the menu function "Export" [Ctrl+E] and apply the export script from step 1.  
(Note: Activate the option " one file per directory")

3. Look into the target folder and check for the existance of the newly created m3u file.

If all looks ok, then do it for all selected files at once.

DD.20171021.1035.CEST

---

_[View the full topic](https://community.mp3tag.de/t/create-m3u-files-from-multiple-folders/19458)._
