# Action for Folders to All tags

**URL:** <https://community.mp3tag.de/t/action-for-folders-to-all-tags/58366>\
**Category:** Support\
**Created:** [August 30, 2022, 2:37pm UTC](https://community.mp3tag.de/t/action-for-folders-to-all-tags/58366 "2022-08-30T14:37:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![1dlnqt1983](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/1/ac8455/32.png) [@1dlnqt1983](https://community.mp3tag.de/u/1dlnqt1983)\
**Post date:** [August 30, 2022, 2:37pm UTC](https://community.mp3tag.de/t/action-for-folders-to-all-tags/58366/1 "2022-08-30T14:37:03Z")

</div>

All of my folders are well organized. I would like to be able to use the Actions to compete some steps to get most of the tags filled in. I am able to make Actions for most of the steps, but I am having a hard time trying to get the Genre and the Year from the Folder. I have a really big collection, and this would save a lot of time if I could just create one action and not have to rely on doing multiple steps. My folder structure is :

D:\Music\Genre\Artist[Year] Album\Title

Is there a way for me to get the following by using the actions

From Folder: ---------------To Tag:  
Genre-----------------------\> Genre  
Artist------------------------\> Artist  
[year] ----------------------\> Year (minus brackets)  
[year] Album -------------\> Album (with [Year])

---

<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:** [August 30, 2022, 2:46pm UTC](https://community.mp3tag.de/t/action-for-folders-to-all-tags/58366/2 "2022-08-30T14:46:27Z")

</div>

> [@1dlnqt1983](#):
>
> Music\Genre\Artist[Year] Album\Title

You could use the Convert Filename -\> Tag to check if this works before you use it in an action:  
Format-String for your folder:  
`%Genre%\%Artist%\[%Year%]\%Album%\%Title%`

![image](https://community.mp3tag.de/uploads/default/original/2X/d/d93e655c8fa37e0378c7b1462bec00e2e204dd82.png)

If the tag names in the preview are written in **bold** , they are recognized as official tag.  
If they are not bold, there is a typo somehwere in your format string.

If this works, I would append the year in a second step to the existing album name.  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/1/1ab97006d57e6602f0f9c61ec1fa5b18f746db19.png)  
Format-String for Year in brackets after existing Albumname:  
`%ALBUM% '['%YEAR%']'`

---

<div class="post-metadata">

**Author:** ![1dlnqt1983](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/1/ac8455/32.png) [@1dlnqt1983](https://community.mp3tag.de/u/1dlnqt1983)\
**Post date:** [August 30, 2022, 4:09pm UTC](https://community.mp3tag.de/t/action-for-folders-to-all-tags/58366/3 "2022-08-30T16:09:45Z")

</div>

Thanks for the fast reply.....I can get the right information when doing Filename to tag with: All the information is BOLD.

`%genre%\%artist%\[%year%]\%album%\%title%`

But I want to use this as an Action or multiple Actions to accomplish this. I can get the Artist, Album and Title to the appropriate tags from the Folders, but I am having a hard time adding "Genre" and "Year" from the folders to their respective folders. I would like to do this in Action if it is possible. I have a large music collection, and I already have some pretty extensive built Actions.

---

<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:** [August 30, 2022, 4:33pm UTC](https://community.mp3tag.de/t/action-for-folders-to-all-tags/58366/5 "2022-08-30T16:33:02Z")

</div>

> [@LyricsLover](#):
>
> %Genre%%Artist%[%Year%]%Album%%Title%

You could try an Action "Guess Values":  
Source format:  
`%_path%`  
Guessing pattern:  
`D:\Music\%Genre%\%Artist%\[%Year%]\%Album%\%Title%`

![image](https://community.mp3tag.de/uploads/default/original/2X/9/98bf4e1cf2e2141584a0660e4ef575daa174ecf7.png)

For tags you don't want to fill (like TITLE) you can replace the part in the guessing pattern with `%dummy%` like this  
`D:\Music\%Genre%\%Artist%\[%Year%]\%Album%\%dummy%`

> [@1dlnqt1983](#):
>
> but I am having a hard time adding "Genre" and "Year" from the folders to their respective folders.

Actions only work with a fixed directory structure. If the structure changes, you have to change the action (the guessing pattern) too.

---

<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:** [August 31, 2022, 7:02am UTC](https://community.mp3tag.de/t/action-for-folders-to-all-tags/58366/6 "2022-08-31T07:02:49Z")

</div>

> [@1dlnqt1983](#):
>
> But I want to use this as an Action or multiple Actions to accomplish this

Honestly, how often in the life of a file does this happen?  
I can imagine that it happens once when one realizes that embedded metadata is better than external data in paths. But afterwards? I would assume that from then on all further manipulation happens in the tags and that, the other way round, the filled tags in the end lead to a folder structure.  
But, if it should happen that files from other sources diffundate into the collection, then I would assume that an ad hoc Converter pattern would serve the purpose much better than a fixed action.  
Since a couple of versions ago, the handling of Converter patterns has been improved so that such pattern can be saved, named, get comments (and deleted) if necessary, almost like actions, only with the benefit of getting the preview which the actions lack.

So, even though it is possible to emulate the function of Convert\>Filename-Tag with an action of the type "Guess value" to import tag fields, I would assume, that the converter can be managed better.

---

<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:29pm UTC](https://community.mp3tag.de/t/action-for-folders-to-all-tags/58366/7 "2026-02-09T12:29:54Z")

</div>


