# 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:** 20
**Page:** 1

<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 22, 2024, 2:16pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/1 "2024-09-22T14:16:33Z")

</div>

Hello

once again i'm on the correct format string needed to pull tag info from a frirectory, i can't figure the string to pulll the following from a directory,

adam ant -england - rock.

my goal is to add the country and genre within the tag. can someone please help with the format string. Thank You

i

---

<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 22, 2024, 2:54pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/2 "2024-09-22T14:54:49Z")

</div>

> [@dp19](#):
>
> adam ant -england - rock.
> 
> my goal is to add the country and genre

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.

---

<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 23, 2024, 1:47pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/3 "2024-09-23T13:47:40Z")

</div>

Thank You exactly what i looking for. adding to my list of commands notes. Have a Great Day.

---

<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 24, 2024, 4:21pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/4 "2024-09-24T16:21:59Z")

</div>

Hi,

i would like to do this within a action

i've tried both format value and guess value with the provided string with no luck, so what action type should i be providing please, Thank You

---

<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, 4:24pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/5 "2024-09-24T16:24:45Z")

</div>

> [@dp19](#):
>
> and guess value

If something does not work, it would always be very nice to see a corresponding screenshot.  
In general it should work with "Guess value".

---

<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 24, 2024, 5:10pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/6 "2024-09-24T17:10:30Z")

</div>

i really would do a screenshot but always have trouble sending them to the site so here's what is have

source farmat:

E:%artist% - US - DISCO

guessing pattern

`%dummy% -%country% - %genre%\%dummy%`

---

<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, 5:15pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/7 "2024-09-24T17:15:16Z")

</div>

Here are some hints how to get screenshots:

> [@Hints for asking Support Requests](https://community.mp3tag.de/t/hints-for-asking-support-requests/56190):
>
> If you need support using Mp3tag, you can help the community members that are about to support you in finding a solution or workaround to your problem, by following these simple guidelines. Be descriptive, also in what you’ve already tried Please give a short explanation what’s not working as expected or what you’re trying to achieve. It’s best to know any details about the problem at hand and especially, what steps you’ve already tried to solve it by yourself. Helpful information also includ…

The linked section also asks to use formatting. So, could you follow the instructions, please?  
I am pretty sure that there is a backslash between genre and dummy.

What I can suspect right now: I assume that you use the folder name as source.  
But if you look at the name of the previously applied function Convert\>Filename-Tag it uses the filename and not the folder name.  
And I also see a trailing space behind the first hyphen in the source but none in the guessing pattern.  
But as all these minute differences are important, I much more prefer a screenshot than a written copy.

---

<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 24, 2024, 5:18pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/8 "2024-09-24T17:18:59Z")

</div>

exactly i'm trying to pull country and genre from the folder name.

---

<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, 5:26pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/9 "2024-09-24T17:26:54Z")

</div>

If you have problems with screenshots now, use the same technique that was successful here:

> [@Replacing artist](https://community.mp3tag.de/t/replacing-artist/52851/9):
>
> here the screen shots i hope they come out.

---

<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 24, 2024, 5:37pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/10 "2024-09-24T17:37:06Z")

</div>

thanks but what i'm looking for is the source format under the guess value

---

<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, 5:40pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/11 "2024-09-24T17:40:01Z")

</div>

> [@dp19](#):
>
> under the guess value

You either have to use the filename as source format or use a guessing pattern that uses the folder name exclusively.  
Right now you have the folder name as source but use a guessing pattern that assumes a filename.  
So which should it be?

---

<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 24, 2024, 5:48pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/12 "2024-09-24T17:48:16Z")

</div>

Thank you for wording that question i have it figutre out. i see you can' use convert filenane to tag on folders. Thanks Again.....Dp19 Out

---

<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, 5:49pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/13 "2024-09-24T17:49:28Z")

</div>

> [@dp19](#):
>
> i see you can' use convert filenane to tag on folders.

That is not true.  
You mixed it up as you supplied a foldername as source but used a guessing pattern for a filename.  
Or in more details:  
where in the source do you find the backslash that you supplied in front of %dummy% in the guessing pattern?

---

<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 24, 2024, 5:56pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/14 "2024-09-24T17:56:00Z")

</div>

ok as an action right?

---

<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, 5:59pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/15 "2024-09-24T17:59:05Z")

</div>

Yes. as an action. But in your example you mixed it up as described.  
So, will you show us your original approach in a screenshot?

BTW: if the converter is easier to use - why don't you use the "Manage history ..." function and label that converter string with a name like an action and call it when required?

---

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

</div>

i pull the backlash from the directory. didn't know about the manage history.

---

<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:04pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/17 "2024-09-24T18:04:48Z")

</div>

> [@dp19](#):
>
> directory

The variable \_directory does not have the backslash - and also no string following that backslash.  
That is why your guessing pattern does not match.  
It would be easiest if you used %\_filename% as source.

---

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

</div>

one more thing and i'll leave you alone how can i do the source pattern for multi folders is that possible. again i'm slowly learning this.

---

<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:07pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/19 "2024-09-24T18:07:55Z")

</div>

> [@dp19](#):
>
> how can i do the source pattern for multi folders is that possible

Could you please open a new thread for 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 24, 2024, 6:10pm UTC](https://community.mp3tag.de/t/tag-info-from-directory/66004/20 "2024-09-24T18:10:25Z")

</div>

well its not really a new problem thanks for your help.

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