# Tag info from \_directory

**URL:** https://community.mp3tag.de/t/tag-info-from-directory/66004
**Category:** Support
**Created:** [September 22, 2024, 2:16pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004 "2024-09-22T14:16:33Z")
**Posts on this page:** 10
**Page:** 2

<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: [September 24, 2024, 6:13pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/21 "2024-09-24T18:13:42Z")

</div>

I think it is a new problem as the original problem has been solved in post #2

> [@Tag info from \_directory](https://community.mp3tag.de/t/tag-info-from-directory/66004/2):
>
> Try Convert\>Filename-Tag Format string: %dummy% -%country% - %genre%\%dummy% Please note that there is no field for country and the %country% will create a user-defined field.

as you said yourself:

> [@dp19](#):
>
> Thank You exactly what i looking for. adding to my list of commands notes. Have a Great Day.

So I would say that everything following that 3rd post is a new problem.

---

<div class="post-metadata">

### Author: ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)
#### Post date: [September 29, 2024, 5:51pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/22 "2024-09-29T17:51:46Z")

</div>

ok, i have tried every whick way i can think to get this nto ant action with no luck, you tell me i'm using mixed field or format and strings, so not knowing what they may be could someone please tell me. also is there a way to pull entries from manage history to to top of mp3tag without going into manage history each time. Thanks for all the help dp19

---

<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: [September 29, 2024, 6:07pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/23 "2024-09-29T18:07:11Z")

</div>

If this

> [@dp19](#):
>
> guessing pattern
> 
> `%dummy% -%country% - %genre%\%dummy%`

works, then use as  
Source format string: %\_filename%

---

<div class="post-metadata">

### Author: ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)
#### Post date: [September 29, 2024, 6:55pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/24 "2024-09-29T18:55:48Z")

</div>

Thanks for that info.

---

<div class="post-metadata">

### Author: ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)
#### Post date: [September 29, 2024, 8:00pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/25 "2024-09-29T20:00:46Z")

</div>

ok i give uo. if using $\_filename% no info can be pul do to the info i like to pull is in the directory folder. so to me an action can't not be done wich i like to use instead of covert filename - tag and having to pull up manage hitory all the time. Thanks

---

<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: [September 29, 2024, 8:02pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/26 "2024-09-29T20:02:04Z")

</div>

> [@dp19](#):
>
> $\_filename%

The variable is called %\_filename%.  
And you know the ritual: if something "does not work" then a lot more details about the found results, messages and most preferred: screenshots are to be supplied by you.

---

<div class="post-metadata">

### Author: ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)
#### Post date: [September 30, 2024, 3:45pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/27 "2024-09-30T15:45:50Z")

</div>

ok here we go

i want to pull us - rock from the directory name Loggins & Messina - us - rock. this is where that info is only located, NOT IN THE FILENAME.

 ![Screenshot (1)](https://community.mp3tag.de/uploads/default/original/3X/c/a/cada6cb551c4c9b7b552bcea9509b451590f7fc6.png)  
 ![Screenshot (1)](https://community.mp3tag.de/uploads/default/original/3X/c/a/cada6cb551c4c9b7b552bcea9509b451590f7fc6.png)  
my guessing value is in the screenshot

 ![Screenshot (6)](https://community.mp3tag.de/uploads/default/original/3X/c/0/c0628748d8e1d944bbb4f64d57e39f437c9536af.png)

nothing happen when i run the action so why and how do i get this to work please. i rather use actions then convert filename to tag. Thanks dp19

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [September 30, 2024, 4:21pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/28 "2024-09-30T16:21:04Z")

</div>

Just use exact this Guessing pattern:  
`%dummy% - %country% - %genre%\%dummy%`  
and the Source format  
`%_PATH%`  
(not %\_FILENAME%. It only contains the filename, not the [parent directories](https://docs.mp3tag.de/format/#file-name-and-path-information) before the backslash `\` )

This writes US in COUNTRY and ROCK in GENRE for an example song called  
`E:\LOGGINS & MESSINA - US - ROCK\01 - Test.mp3`  
 ![image](https://community.mp3tag.de/uploads/default/original/3X/9/b/9b3fdd203e5d774c9c2b3ebd9a8fa9f09fbdf69b.png)

---

<div class="post-metadata">

### Author: ![dp19](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dp19](https://community.mp3tag.de/u/dp19)
#### Post date: [September 30, 2024, 6:29pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/29 "2024-09-30T18:29:14Z")

</div>

Lyricslover Thank You that exactly what i'm looking for. i try it worked great!! just needed the correct source input Thanks all....dp19 out

---

<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: [October 30, 2024, 6:29pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/30 "2024-10-30T18:29:22Z")

</div>

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

[Previous page](https://community.mp3tag.de/t/tag-info-from-directory/66004.md?page=1)
