# Using Folder Name in Mp3 Name

**URL:** https://community.mp3tag.de/t/using-folder-name-in-mp3-name/9436
**Category:** Support
**Created:** [November 28, 2009, 10:56am UTC](https://community.mp3tag.de/t/using-folder-name-in-mp3-name/9436 "2009-11-28T10:56:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![xbon](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/f475e1/32.png) [@xbon](https://community.mp3tag.de/u/xbon)
#### Post date: [November 28, 2009, 10:56am UTC](https://community.mp3tag.de/t/using-folder-name-in-mp3-name/9436/1 "2009-11-28T10:56:45Z")

</div>

I have recently finished ripping my entire cd collection over 23,000 for my purpose built jukebox it has taken me 11months to complete.

Now i am beginning to check the tags etc

I have a lot of mp3`s in their correct folders named using the track name

ie:

folder name : Ce\_Ce\_Peniston\_-\_Finally\_\_Maxi-CD\_\_1990

then inside that folder another folder called Ce Ce Peniston - Finally (Maxi-CD) 1990

then inside that folder the mp3`s etc.

1. Finally (Choice Mix).mp3
2. Finally (12'' Choice Mix).mp3
3. Finally (Somedub Mix).mp3
4. Finally (7'' Mix Without Rap).mp3

I would like to add part of the folder name into the mp3

ie So the above becomes

Ce Ce Peniston - Finally (Choice Mix).mp3

Then the other information is filled in ie Finally for the album (No Maxi-Cd etc)  
and 1990 for the year.

Any way of doing this a easy way, i have worked something out but still involves a lot of manual typing i was wondering if anyone knows a easier quicker way etc.

---

<div class="post-metadata">

### Author: ![RevRagnarok](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/b487fb/32.png) [@RevRagnarok](https://community.mp3tag.de/u/RevRagnarok)
#### Post date: [November 28, 2009, 1:48pm UTC](https://community.mp3tag.de/t/using-folder-name-in-mp3-name/9436/2 "2009-11-28T13:48:05Z")

</div>

> [@xbon](#):
>
> I would like to add part of the folder name into the mp3

This is what I use:

Guess values:  
Source: %\_directory%  
Dest: %artist% - %album%

That should work for ya.

That is one of the first steps I do in a multiple step action.

---

<div class="post-metadata">

### Author: ![xbon](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/x/f475e1/32.png) [@xbon](https://community.mp3tag.de/u/xbon)
#### Post date: [November 28, 2009, 7:29pm UTC](https://community.mp3tag.de/t/using-folder-name-in-mp3-name/9436/3 "2009-11-28T19:29:10Z")

</div>

> [@RevRagnarok](#):
>
> This is what I use:
> 
> Guess values:  
> Source: %\_directory%  
> Dest: %artist% - %album%
> 
> That should work for ya.
> 
> That is one of the first steps I do in a multiple step action.

Thanks m8, much appreciated i will give it a try etc.

---

<div class="post-metadata">

### Author: ![rstran](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@rstran](https://community.mp3tag.de/u/rstran)
#### Post date: [December 14, 2009, 7:05pm UTC](https://community.mp3tag.de/t/using-folder-name-in-mp3-name/9436/4 "2009-12-14T19:05:54Z")

</div>

> [@RevRagnarok](#):
>
> This is what I use:
> 
> Guess values:  
> Source: %\_directory%  
> Dest: %artist% - %album%
> 
> That should work for ya.
> 
> That is one of the first steps I do in a multiple step action.

Could someone pleae provide a brief example of how to use the source and destination names? I want to rename several hundred albums with blank album names based upon the folder name that the files are in, without opening each folder one at a time. They all fall under the same artist, in this case. Could I do this in some automated fashion? This is my goal. I would want to select every album in a folder, and only replace blank album tags if that's possible.

I am trying to use the "replace" in NEW ACTION dialog, but am having problems. I told it the FIELD to replace, but am having problems with the "Regular Expression". I have the "Replace matches with" field down properly. I tried "" as a regualr expression (indicating that I wanted it to replace a BLANK FIELD, but this does not seem to work. I tried leaving the field blank, but it won't let me do that. Anyone up for describing the regular expression for a blank field that will work here, or another solution?

Thanks in advance to anyone who can help me out!

---

<div class="post-metadata">

### Author: ![RevRagnarok](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/b487fb/32.png) [@RevRagnarok](https://community.mp3tag.de/u/RevRagnarok)
#### Post date: [December 14, 2009, 7:21pm UTC](https://community.mp3tag.de/t/using-folder-name-in-mp3-name/9436/5 "2009-12-14T19:21:16Z")

</div>

> [@rstran](#):
>
> Could someone pleae provide a brief example of how to use the source and destination names?

You should be able to do what I said above to get them all in one pass. What I described is a custom action that you can define. I don't have mp3tag on this machine for details, sorry.

---

<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/using-folder-name-in-mp3-name/9436/6 "2026-02-09T12:21:59Z")

</div>


