# Tag artist field from folder name?

**URL:** https://community.mp3tag.de/t/tag-artist-field-from-folder-name/69993
**Category:** Support
**Created:** [October 13, 2025, 1:18pm UTC](https://community.mp3tag.de/t/tag-artist-field-from-folder-name/69993 "2025-10-13T13:18:22Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![fahad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/ecccb3/32.png) [@fahad](https://community.mp3tag.de/u/fahad)
#### Post date: [October 13, 2025, 1:18pm UTC](https://community.mp3tag.de/t/tag-artist-field-from-folder-name/69993/1 "2025-10-13T13:18:22Z")

</div>

hi, could anyone help me, when I tag the artist field I'm wanting it to place the artist's name for that particular folder but it puts 1 artist name for all folders, how can I fix that?, see the image showing it placed A Teens for all folders.

 ![17603617059036703462436442639965](https://community.mp3tag.de/uploads/default/original/3X/0/f/0f9f0e07091bd0827c1b129b09575354213d5cf7.jpeg)

---

<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: [October 13, 2025, 1:20pm UTC](https://community.mp3tag.de/t/tag-artist-field-from-folder-name/69993/2 "2025-10-13T13:20:27Z")

</div>

Which function do you use to set the artist and/or folder name?

---

<div class="post-metadata">

### Author: ![fahad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/ecccb3/32.png) [@fahad](https://community.mp3tag.de/u/fahad)
#### Post date: [October 13, 2025, 1:36pm UTC](https://community.mp3tag.de/t/tag-artist-field-from-folder-name/69993/3 "2025-10-13T13:36:12Z")

</div>

I'm using %\_workingdir% for the format string, I tried all strings, I hope there's a way 🙏🏼

 ![17603628051175502319863228085488](https://community.mp3tag.de/uploads/default/original/3X/5/b/5b584a8066aba568d26450397e65e37d50e333ab.jpeg)

---

<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: [October 13, 2025, 1:54pm UTC](https://community.mp3tag.de/t/tag-artist-field-from-folder-name/69993/4 "2025-10-13T13:54:58Z")

</div>

The first line in list of files shows the string "A Teens" but is shows a path "`E:\Music\A\A Teens\SIngles\Sugar Rush [EU Maxi CD]`"  
The %\_workingdir% is the path that you see in the field for "Directory" in the tag panel.  
%\_directory% points at the folder in which the current file is located - that would be "`Sugar Rush [EU Maxi CD]`.  
If you want to get the "A Teens" from way up the folder hierarchy, then Convert\>Filename-Tag would be the function of choice with  
Format string: `%artist%\%dummy%\%dummy%\%dummy%`  
The preview should show whether you have the right amount of folder levels.

---

<div class="post-metadata">

### Author: ![fahad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/ecccb3/32.png) [@fahad](https://community.mp3tag.de/u/fahad)
#### Post date: [October 13, 2025, 2:05pm UTC](https://community.mp3tag.de/t/tag-artist-field-from-folder-name/69993/5 "2025-10-13T14:05:32Z")

</div>

it worked, thank you so much, you saved me so much time 🙏🏼

---

<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: [November 12, 2025, 2:06pm UTC](https://community.mp3tag.de/t/tag-artist-field-from-folder-name/69993/6 "2025-11-12T14:06:03Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
