# Using Name of Subdirectory as Artist's Name

**URL:** https://community.mp3tag.de/t/using-name-of-subdirectory-as-artists-name/8683
**Category:** Support
**Created:** [July 28, 2009, 7:40pm UTC](https://community.mp3tag.de/t/using-name-of-subdirectory-as-artists-name/8683 "2009-07-28T19:40:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![whitesmith](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/a5b964/32.png) [@whitesmith](https://community.mp3tag.de/u/whitesmith)
#### Post date: [July 28, 2009, 7:40pm UTC](https://community.mp3tag.de/t/using-name-of-subdirectory-as-artists-name/8683/1 "2009-07-28T19:40:24Z")

</div>

I have an extensive collection of classical CDs ripped to my hard drive according to this schema:

X:\Music\Composer\Composition, Conductor [(soloist, instrument)], Orchestra.flac

To keep things simple, I use Composition and everything to its right as the title. This part was simple, but I can't figure out how to make Artist take on the name of the containing subdirectory (Composer, in other words). For example, "X:\Music\Beethoven\Symphony No. 9 in D minor, Op. 125, Herbert von Karajan, Berlin Philharmonic.flac" should be

Title = "Symphony No. 9 in D minor, Op. 125, Herbert von Karajan, Berlin Philharmonic" (works OK)  
Artist = "Beethoven" (baffles me)

If someone could lend a helping hand I would be sincerely grateful.

Thanks!

---

<div class="post-metadata">

### Author: ![ci3nt](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/5daacb/32.png) [@ci3nt](https://community.mp3tag.de/u/ci3nt)
#### Post date: [July 28, 2009, 8:05pm UTC](https://community.mp3tag.de/t/using-name-of-subdirectory-as-artists-name/8683/2 "2009-07-28T20:05:35Z")

</div>

Hello,

you can use the action 'Format Value':  
Field: ARTIST  
Format string: %\_directory%

regards,  
gnor

---

<div class="post-metadata">

### Author: ![whitesmith](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/a5b964/32.png) [@whitesmith](https://community.mp3tag.de/u/whitesmith)
#### Post date: [July 30, 2009, 7:57pm UTC](https://community.mp3tag.de/t/using-name-of-subdirectory-as-artists-name/8683/3 "2009-07-30T19:57:16Z")

</div>

So simple! Thanks for your help.

---

<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-name-of-subdirectory-as-artists-name/8683/4 "2026-02-09T12:21:40Z")

</div>


