# Automate Filename-Tag using Actions

**URL:** https://community.mp3tag.de/t/automate-filename-tag-using-actions/53906
**Category:** Support
**Created:** [July 30, 2021, 12:18pm UTC](https://community.mp3tag.de/t/automate-filename-tag-using-actions/53906 "2021-07-30T12:18:28Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [July 30, 2021, 1:49pm UTC](https://community.mp3tag.de/t/automate-filename-tag-using-actions/53906/3 "2021-07-30T13:49:39Z")

</div>

Maybe you can reach your goal with some of this variables:

> **[Converters – Mp3tag Documentation](https://docs.mp3tag.de/converters/)**
>
> Converters. Mp3tag is the universal Tag Editor.

especially:  
`%_directory%` ---\> Name of the parent directory  
`%_parent_directory%` ---\> Name of the grandparent folder

And maybe this approach can help too:

> [@Easy way to get directory names above Parent?](https://community.mp3tag.de/t/easy-way-to-get-directory-names-above-parent/9324/6):
>
> Following example of an Action Group "SplitFolderpath" demonstrates how to split the content of the Mp3tag system variable \_FOLDERPATH into it's folder components and make the folder names available for scripting by owner defined tag fields. MY\_FOLDER\_0 is the parent folder of the related file. MY\_FOLDER\_1 is the next folder up. MY\_FOLDER\_2 is the folder two steps up. ... and so on. Begin Action Group SplitFolderpath Action #1 Actiontype 5: Format tag field Field: MY\_FOLDERPATH Formatst…

---

_[View the full topic](https://community.mp3tag.de/t/automate-filename-tag-using-actions/53906)._
