# Album Tag to Folder Name

**URL:** <https://community.mp3tag.de/t/album-tag-to-folder-name/18340>\
**Category:** Support\
**Created:** [October 16, 2016, 7:01pm UTC](https://community.mp3tag.de/t/album-tag-to-folder-name/18340 "2016-10-16T19:01:03Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![hypersucker](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/ac8455/32.png) [@hypersucker](https://community.mp3tag.de/u/hypersucker)\
**Post date:** [October 26, 2020, 10:00pm UTC](https://community.mp3tag.de/t/album-tag-to-folder-name/18340/21 "2020-10-26T22:00:15Z")

</div>

Oh FFS. So you seriously do this:

 ![image](https://community.mp3tag.de/uploads/default/original/2X/3/39e8723cbc103a09b48af18a2c222f0ce2dd4cf0.jpeg)

and it works for you? tags get written?

I even copied your text and created a new action and still nothing. is there logs I can check to see what happens?

---

<div class="post-metadata">

**Author:** ![hypersucker](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/ac8455/32.png) [@hypersucker](https://community.mp3tag.de/u/hypersucker)\
**Post date:** [October 26, 2020, 10:25pm UTC](https://community.mp3tag.de/t/album-tag-to-folder-name/18340/22 "2020-10-26T22:25:22Z")

</div>

It works now. I have no idea why. Didnt even have to enclose the brackets, works as is.

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [October 27, 2020, 5:14am UTC](https://community.mp3tag.de/t/album-tag-to-folder-name/18340/23 "2020-10-27T05:14:16Z")

</div>

> [@hypersucker](#):
>
> Sorry, I thought it was clear that there is a \ between %album% and %title%. this seems to get lost during copy/paste.

You have to enclose the string which includes backslashes in single quotes or mark the string as preformatted text.  
You can do this in manually typing the quotes or you can mark the string and use the `</>` icon for preformatted text (Ctrl-Shift+C) in the forum editor.

---

<div class="post-metadata">

**Author:** ![hypersucker](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/ac8455/32.png) [@hypersucker](https://community.mp3tag.de/u/hypersucker)\
**Post date:** [October 27, 2020, 12:35pm UTC](https://community.mp3tag.de/t/album-tag-to-folder-name/18340/24 "2020-10-27T12:35:30Z")

</div>

This was driving me crazy lol. Thanks, good to know for next time.

---

<div class="post-metadata">

**Author:** ![hypersucker](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/ac8455/32.png) [@hypersucker](https://community.mp3tag.de/u/hypersucker)\
**Post date:** [July 12, 2021, 3:32pm UTC](https://community.mp3tag.de/t/album-tag-to-folder-name/18340/25 "2021-07-12T15:32:14Z")

</div>

seufz. so I would like to just inject the meta tag year into the folder name.

currently: ARTIST - ALBUM  
want: ARTIST [YEAR] ALBUM

I tried to create an action to do this and also tried tag-tag converter. but I'm doing something wrong since I either end up with just the [YEAR] as folder name or nothing at all.

tag-tag: field: \_DIRECTORY format string: %dummy% '['%year%']' %dummy%  
(I thought dummy is a placeholder for the current value? I also tried %1 but to no luck either)

long story short, how do I tell mp3tag what parts of the file or folder name to leave alone and where to inject a tag value?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [July 12, 2021, 3:40pm UTC](https://community.mp3tag.de/t/album-tag-to-folder-name/18340/26 "2021-07-12T15:40:32Z")

</div>

Format string for \_Directory: `%artist% '['%year%']' %album%`  
In an action of the type "Format value" or Converter\>Tag-Tag

---

<div class="post-metadata">

**Author:** ![hypersucker](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/ac8455/32.png) [@hypersucker](https://community.mp3tag.de/u/hypersucker)\
**Post date:** [July 12, 2021, 4:19pm UTC](https://community.mp3tag.de/t/album-tag-to-folder-name/18340/27 "2021-07-12T16:19:40Z")

</div>

> [@ohrenkino](#):
>
> Format string for \_Directory: `%artist% '['%year%']' %album%`

mp3tag is busy for a while so I cant check but that would use the artist and album tag from the meta data too, right? I cant yet use the artist and album meta data of the flac file, they're not cleaned up and proper yet. I just want to inject year into the existing folder name which is Artist - Album now since the folder names are clean and proper. after I inject the year into the folder name I import the folder name back to the flac files to the proper tags.

how do I tell mp3tag to not touch the Artist and Album part of the folder name but just "replace" the "-" (dash) with the year tag [year]?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [July 12, 2021, 5:06pm UTC](https://community.mp3tag.de/t/album-tag-to-folder-name/18340/28 "2021-07-12T17:06:17Z")

</div>

Format string: `$regexp(%_filename%,(.*) - (.*),'$1 ''['%year%']' $2)`

---

<div class="post-metadata">

**Author:** ![hypersucker](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/ac8455/32.png) [@hypersucker](https://community.mp3tag.de/u/hypersucker)\
**Post date:** [July 12, 2021, 7:45pm UTC](https://community.mp3tag.de/t/album-tag-to-folder-name/18340/29 "2021-07-12T19:45:43Z")

</div>

it took me waaaaaay to long to figure out why your regex didnt work for me on my test files. I should not have chosen AC-DC as test sample lol.

it works fine for everything that does not have a dash in the artist name. I can work around that. thanks mate!

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [July 12, 2021, 7:53pm UTC](https://community.mp3tag.de/t/album-tag-to-folder-name/18340/30 "2021-07-12T19:53:34Z")

</div>

> [@hypersucker](#):
>
> AC-DC .... taht does not have a dash in the artist name

Then you have used a different format string as  
`$regexp(AC-DC - Hells Bells,(.*) - (.*),'$1 ''['%year%']' $2)`  
Leads to  
AC-DC [2000] Hells Bells  
The separator is not just the dash but blank dash blank.

---

<div class="post-metadata">

**Author:** ![hypersucker](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/ac8455/32.png) [@hypersucker](https://community.mp3tag.de/u/hypersucker)\
**Post date:** [July 12, 2021, 8:00pm UTC](https://community.mp3tag.de/t/album-tag-to-folder-name/18340/31 "2021-07-12T20:00:39Z")

</div>

sorry, my bad. on top of it all, 300 folders and only 2 not properly named and I chose those to test on. indeed, the folder name was AC-DC- Albumname (no space after DC and dash) and hence lead to an undesirable result using that regex. all good now.

---

<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:26pm UTC](https://community.mp3tag.de/t/album-tag-to-folder-name/18340/32 "2026-02-09T12:26:28Z")

</div>



[Previous page](https://community.mp3tag.de/t/album-tag-to-folder-name/18340.md?page=1)
