# Pulling location from directory into an action

**URL:** https://community.mp3tag.de/t/pulling-location-from-directory-into-an-action/66877
**Category:** Support
**Created:** [December 17, 2024, 2:17pm UTC](https://community.mp3tag.de/t/pulling-location-from-directory-into-an-action/66877 "2024-12-17T14:17:46Z")
**Posts on this page:** 1
**Showing post:** 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: [December 17, 2024, 2:56pm UTC](https://community.mp3tag.de/t/pulling-location-from-directory-into-an-action/66877/2 "2024-12-17T14:56:15Z")

</div>

It is not clear to me what you want to do.  
If you want to add the country to the existing folder name, then there is an action example in the FAQs:

> [@Actions and batch-operations](https://community.mp3tag.de/t/actions-and-batch-operations/967/5):
>
> How to append the string " xyz" to the content of a tag field? Create a [new action](https://community.mp3tag.de/t/actions/967/2) in an existing action group and choose Format value as action type. Field specifies the tag field the formatting rule should be applied to. Format string must have the field placeholder for the field selected above and the string which should be appended. Example: If you want to append the string " xyz" to the current value of the comment field: Action type: Format value Field: COMMENT Format string: %com…

Please note that %dummy% does not work in actions of the type "Format value" or in a way it does but it always returns an empty string.

If you want to get the field COUNTRY filled with data from the folder name, then the type of action is not correct but you have to use "Guess value".

Also see here:

> [@Tag info from \_directory](https://community.mp3tag.de/t/tag-info-from-directory/66004):
>
> 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

---

_[View the full topic](https://community.mp3tag.de/t/pulling-location-from-directory-into-an-action/66877)._
