# auto rename genre based on folder name

**URL:** https://community.mp3tag.de/t/auto-rename-genre-based-on-folder-name/7161
**Category:** General Discussion
**Created:** [September 6, 2008, 8:22pm UTC](https://community.mp3tag.de/t/auto-rename-genre-based-on-folder-name/7161 "2008-09-06T20:22:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sirspoky](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/9fc348/32.png) [@sirspoky](https://community.mp3tag.de/u/sirspoky)
#### Post date: [September 6, 2008, 8:22pm UTC](https://community.mp3tag.de/t/auto-rename-genre-based-on-folder-name/7161/1 "2008-09-06T20:22:56Z")

</div>

I have all my mp3s arranged by folder on my drive however the tags are wrong. I am trying to find a way to automatically rename all my MP3's genre tag based on the folder name they are in.

So if i have a folder called 70s, I want all MP3 files's genre tag in that folder to be retagged 70s.

can MP3tag do that? thanks.

---

<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: [September 20, 2008, 10:06am UTC](https://community.mp3tag.de/t/auto-rename-genre-based-on-folder-name/7161/2 "2008-09-20T10:06:57Z")

</div>

Yes, this is possible using the converter Filename \> Tag using a format string like  
%genre%\%dummy%

Kind regards,  
Florian

---

<div class="post-metadata">

### Author: ![viharm](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/e274bd/32.png) [@viharm](https://community.mp3tag.de/u/viharm)
#### Post date: [October 6, 2008, 1:31pm UTC](https://community.mp3tag.de/t/auto-rename-genre-based-on-folder-name/7161/3 "2008-10-06T13:31:23Z")

</div>

> [@Florian](#):
>
> Yes, this is possible using the converter Filename \> Tag using a format string like  
> %genre%\%dummy%

Hi Florian,

that's great, I didn't know we could use the %dummy% variable. That's a great feature (I probably missed that in the documentation). Does it mean that the info assigned to this variable during the 'extract' operation is discarded?

Regards,  
ViHAR.

---

<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: [October 8, 2008, 7:56am UTC](https://community.mp3tag.de/t/auto-rename-genre-based-on-folder-name/7161/4 "2008-10-08T07:56:14Z")

</div>

> [@vihar](#):
>
> Does it mean that the info assigned to this variable during the 'extract' operation is discarded?

Yes, exactly!
