# Export file One per parent directory

**URL:** https://community.mp3tag.de/t/export-file-one-per-parent-directory/7124
**Category:** Support
**Created:** [August 7, 2008, 8:37pm UTC](https://community.mp3tag.de/t/export-file-one-per-parent-directory/7124 "2008-08-07T20:37:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [August 7, 2008, 8:37pm UTC](https://community.mp3tag.de/t/export-file-one-per-parent-directory/7124/1 "2008-08-07T20:37:13Z")

</div>

I have a music library organised //.wma and want to export for all albums a tracklist file /info.htm

How do I do this?

I tried

Export file name: `$regexp(%_folderpath%,'[^\\\\]'*\\\\$,)info.htm`  
[] Append data  
[X] One file per directory

but this causes each disc to get a separate file that overwrites the previous, and

Export file name: `$regexp(%_folderpath%,'[^\\\\]'*\\\\$,)info.htm`  
[X] Append data  
[X] One file per directory

duplicates the file header and footer upon each disc.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [August 11, 2008, 5:41pm UTC](https://community.mp3tag.de/t/export-file-one-per-parent-directory/7124/2 "2008-08-11T17:41:27Z")

</div>

[X] One file per directory

This option tells Mp3tag to create a new file for each new directory it encounters. What you're trying to approach is not possible using this option (and I can't think of a batch operation which might accomplish this at the moment).

Kind regards,  
Florian

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [August 11, 2008, 7:09pm UTC](https://community.mp3tag.de/t/export-file-one-per-parent-directory/7124/3 "2008-08-11T19:09:18Z")

</div>

Thanks Florian. I have found a batch workaround: an Action Group with three Exports, all '[X] One File per Directory':

1. writes the file header
2. appends the body for each disc
3. appends the footer, plus unfortunately an redundant footer for each disc past 1

If anyone can suggest a fix to 3, please do!

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:21pm UTC](https://community.mp3tag.de/t/export-file-one-per-parent-directory/7124/4 "2026-02-09T12:21:04Z")

</div>


