# Tagging Artist & Album from relative path

**URL:** https://community.mp3tag.de/t/tagging-artist-album-from-relative-path/5790
**Category:** Support
**Created:** [November 24, 2007, 1:37am UTC](https://community.mp3tag.de/t/tagging-artist-album-from-relative-path/5790 "2007-11-24T01:37:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Spiral](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@Spiral](https://community.mp3tag.de/u/Spiral)
#### Post date: [November 24, 2007, 1:37am UTC](https://community.mp3tag.de/t/tagging-artist-album-from-relative-path/5790/1 "2007-11-24T01:37:53Z")

</div>

Hi, new here but using MP3Tag for several versions (now using v 2.39) and it beats all others I've tried.

Can someone please help me? (using simple language 🙂 )

I want to set album and artist tags quickly by the relative path of the files being tagged.  
When I'm tagging, I've already named the current folder by the album name, and its always located in a folder which has the artist name.

Example  
If I'm tagging files located in  
C:\StuffToTag\The Beatles\Let It Be  
I want to capture %album% from name of folder containing current file(s), and  
%artist% from the name of the parent of that folder.

I'd also like to store this as an Action

I've read the help, and I'm fairly sure the ability is there.  
I just can't figure it out.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 24, 2007, 12:28pm UTC](https://community.mp3tag.de/t/tagging-artist-album-from-relative-path/5790/2 "2007-11-24T12:28:35Z")

</div>

_Action type:_ **Guess values**  
_Source format:_ **%\_parent\_directory%\%\_directory%**  
_Guessing pattern:_ **%artist%\%album%**

---

<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/tagging-artist-album-from-relative-path/5790/3 "2026-02-09T12:20:36Z")

</div>


