# Tag With Album & Artist Taken From Directory Structure

**URL:** https://community.mp3tag.de/t/tag-with-album-artist-taken-from-directory-structure/5069
**Category:** Support
**Created:** [June 26, 2007, 11:23am UTC](https://community.mp3tag.de/t/tag-with-album-artist-taken-from-directory-structure/5069 "2007-06-26T11:23:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![attock](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/48db29/32.png) [@attock](https://community.mp3tag.de/u/attock)
#### Post date: [June 26, 2007, 11:23am UTC](https://community.mp3tag.de/t/tag-with-album-artist-taken-from-directory-structure/5069/1 "2007-06-26T11:23:33Z")

</div>

This program has made my life very easy 😃

Now I have got a question, have a look at the following filename

_D:\somedire\songs\old songs\artist1\album3\song.mp3_

what whould be the best approach to have a tag with **Artist: "artist1"** and **Album: "album3"**

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [June 26, 2007, 11:57am UTC](https://community.mp3tag.de/t/tag-with-album-artist-taken-from-directory-structure/5069/2 "2007-06-26T11:57:57Z")

</div>

Filename-Tag converter with the following string: %dummy%\%dummy%\%dummy%\%artist%\%album%\%dummy%

---

<div class="post-metadata">

### Author: ![igroucho](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/9e8a1a/32.png) [@igroucho](https://community.mp3tag.de/u/igroucho)
#### Post date: [June 26, 2007, 6:20pm UTC](https://community.mp3tag.de/t/tag-with-album-artist-taken-from-directory-structure/5069/3 "2007-06-26T18:20:09Z")

</div>

I want to build my tags from pathway but I'm doing something(s) wrong. My example looks like this (copied from filename to tag preview-window):  
"G:\TESTFOLDER\8 Mile\01-Eminem - Lose Yourself.flac"  
I wont get the OK-button to light up (trying to follow the advice from Sebastian).  
Q1: Can someone give me this exactly how it should be entered in the filename-to-tag box?  
Q2: Furthermore: this shows an example of "Various artists" where Eminem is the MIXARTIST? (seem never to learn which is which: ARTIST - ALBUMARTIST/MIXARTIST?). So I guess I will have to add a tag to mp3tag:s basic setup?  
II have tagged all my cds by one artist and they all show up fine in the Slimserver which is what I run to stream my music library. Now I want to advance to all my compilations and albums of classic music. In the end I want to play my music as flac:s to Slimdevices Transporter.  
Thanks for any help. I have hopes one day to understand this to make all necessary adaptions...

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [June 27, 2007, 12:08pm UTC](https://community.mp3tag.de/t/tag-with-album-artist-taken-from-directory-structure/5069/4 "2007-06-27T12:08:34Z")

</div>

My formatstring only works with the example given by the OP. In your case, the formatstring would be:

%dummy%\%album%\%track%-%mixartist% - %title%

Replace %mixartist% with %artist% or whatever you want.

---

<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:20pm UTC](https://community.mp3tag.de/t/tag-with-album-artist-taken-from-directory-structure/5069/5 "2026-02-09T12:20:22Z")

</div>


