# Grab Folder Name for Genre when using tagging multiple folders

**URL:** <https://community.mp3tag.de/t/grab-folder-name-for-genre-when-using-tagging-multiple-folders/16228>\
**Category:** Support\
**Created:** [October 11, 2014, 1:33pm UTC](https://community.mp3tag.de/t/grab-folder-name-for-genre-when-using-tagging-multiple-folders/16228 "2014-10-11T13:33:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![devouk](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/c89c15/32.png) [@devouk](https://community.mp3tag.de/u/devouk)\
**Post date:** [October 11, 2014, 1:33pm UTC](https://community.mp3tag.de/t/grab-folder-name-for-genre-when-using-tagging-multiple-folders/16228/1 "2014-10-11T13:33:30Z")

</div>

Hi  
I wonder if someone can point me in the direction of what i need to do to accomplish the following

I have a folder called WEEK XX  
in that folder there are subfolders  
HOUSE  
DEEP HOUSE  
RNB  
POP  
DANCE

So i will select Week XX and right click mp3tag so it shows all the files in the subdirectories but not sure how to grab the sub folder name (only the last part ie. House, Deep House etc) to put in to the genre whilst batch tagging

Many thanks

---

<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 11, 2014, 2:02pm UTC](https://community.mp3tag.de/t/grab-folder-name-for-genre-when-using-tagging-multiple-folders/16228/2 "2014-10-11T14:02:53Z")

</div>

Use the Convert-Menue and there "Tag - Tag".

Field: GENRE  
Format String: %\_directory%

---

<div class="post-metadata">

**Author:** ![devouk](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/c89c15/32.png) [@devouk](https://community.mp3tag.de/u/devouk)\
**Post date:** [October 11, 2014, 2:05pm UTC](https://community.mp3tag.de/t/grab-folder-name-for-genre-when-using-tagging-multiple-folders/16228/3 "2014-10-11T14:05:50Z")

</div>

Wow as simple as that, thought it would have put the rest of the directory in the genre.. that is fantastic thank you for the quick reply and working solution

---

<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:25pm UTC](https://community.mp3tag.de/t/grab-folder-name-for-genre-when-using-tagging-multiple-folders/16228/4 "2026-02-09T12:25:19Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


