# actions: set artist/abum folder names = tags

**URL:** <https://community.mp3tag.de/t/actions-set-artist-abum-folder-names-tags/18343>\
**Category:** Support\
**Created:** [October 17, 2016, 12:34pm UTC](https://community.mp3tag.de/t/actions-set-artist-abum-folder-names-tags/18343 "2016-10-17T12:34:58Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![regi100](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@regi100](https://community.mp3tag.de/u/regi100)\
**Post date:** [October 17, 2016, 12:34pm UTC](https://community.mp3tag.de/t/actions-set-artist-abum-folder-names-tags/18343/1 "2016-10-17T12:34:58Z")

</div>

dear community,

sorry to bother you again, but I guess I really in love now with this nice and handy little application 🙂

I have two questions:

a.) Is it possible to set up an action that does two things in a row?

1st: rename the folder like the   
2nd:rename the folder like the

structure is of course like that:  
artist1  
\_\_album1  
\_\_\_\_tracks

ad 1st: it´s already working:  
Format value:  
Field: \_DIRECTORY  
Format string: %album%

b.) is it possible to bulk remove all special character out of the album tag fiels like : \ / \* etc.?

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:** [October 17, 2016, 1:12pm UTC](https://community.mp3tag.de/t/actions-set-artist-abum-folder-names-tags/18343/2 "2016-10-17T13:12:34Z")

</div>

If you want to rename the 2 parts of a folder, I would again suggest the absolute path instead of a relative one.  
So, use the action you have already created but enter as  
Format String: e:\music\%artist%\%album%

You can encapsulate the format string in the function $validate() that removes any illegal character from the path:

Format String: $validate(e:\music\%artist%\%album%,\_)

You see that the \ is still a valid character, just as the / is.  
So if you want to get rid of these as well, it is a little more complicated:

$validate(e:\music$replace(%artist%,/,,,)$replace(%album%,/,,,),\_)

The \* will be removed by the $validate() function.

---

<div class="post-metadata">

**Author:** ![regi100](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@regi100](https://community.mp3tag.de/u/regi100)\
**Post date:** [October 17, 2016, 1:22pm UTC](https://community.mp3tag.de/t/actions-set-artist-abum-folder-names-tags/18343/3 "2016-10-17T13:22:39Z")

</div>

wow, that was quick - and again you ohrenkino 🙂

thank you so much!

---

<div class="post-metadata">

**Author:** ![regi100](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@regi100](https://community.mp3tag.de/u/regi100)\
**Post date:** [October 17, 2016, 3:27pm UTC](https://community.mp3tag.de/t/actions-set-artist-abum-folder-names-tags/18343/4 "2016-10-17T15:27:04Z")

</div>

its working liek a charm 🙂  
thanks again.

according to a.)  
is it possible to do a lookup first if the folder has already the exact name as the artist then skip the rewriting process?

..why I am asking, because this process overall really takes time.....

---

<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:** [October 17, 2016, 3:42pm UTC](https://community.mp3tag.de/t/actions-set-artist-abum-folder-names-tags/18343/5 "2016-10-17T15:42:09Z")

</div>

Then I would apply a filter first, something like:

"$if($eql($lower(%artist%),$lower(%\_parent\_directory%)),1,0)" IS "0"

---

<div class="post-metadata">

**Author:** ![regi100](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@regi100](https://community.mp3tag.de/u/regi100)\
**Post date:** [October 17, 2016, 3:50pm UTC](https://community.mp3tag.de/t/actions-set-artist-abum-folder-names-tags/18343/6 "2016-10-17T15:50:33Z")

</div>

aha... cool, you mean like this?

![](https://community.mp3tag.de/uploads/default/original/2X/e/e29326e43d9f925bfa7d054474bb18947b66c7c8.jpg)

---

<div class="post-metadata">

**Author:** ![regi100](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@regi100](https://community.mp3tag.de/u/regi100)\
**Post date:** [October 17, 2016, 3:53pm UTC](https://community.mp3tag.de/t/actions-set-artist-abum-folder-names-tags/18343/7 "2016-10-17T15:53:35Z")

</div>

and sorry, I ment lookup against the folder of the album..

is it then like this string?  
"$if($eql($lower(%album%),$lower(%\_parent\_directory%)),1,0)" IS "0"

---

<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:** [October 17, 2016, 4:02pm UTC](https://community.mp3tag.de/t/actions-set-artist-abum-folder-names-tags/18343/8 "2016-10-17T16:02:23Z")

</div>

This post: no and also post #6: no!

You can filter for files: you find the input box for filter criteria usually at the bottom of the MP3tag window. If it is not there, press F3 to show it (or press F3 again if you have just hidden the filter input box).

Enter the filter criteria there and you see only the files where the criteria match.

If you want to look up the album name then - if I understood your structure correctly - you do not refer to the parent directory but to the (current) directory. So the filter should be:

"$if($eql($lower(%album%),$lower(%\_directory%)),1,0)" IS "0"

---

<div class="post-metadata">

**Author:** ![regi100](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@regi100](https://community.mp3tag.de/u/regi100)\
**Post date:** [October 17, 2016, 4:05pm UTC](https://community.mp3tag.de/t/actions-set-artist-abum-folder-names-tags/18343/9 "2016-10-17T16:05:22Z")

</div>

found it, thank you - and yes I am studying now the manual section before bothering again 🙂

@developers: it would come handy to add some "live" examples to each chapter of the manuals.

nice evening!  
cheers

---

<div class="post-metadata">

**Author:** ![regi100](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@regi100](https://community.mp3tag.de/u/regi100)\
**Post date:** [October 17, 2016, 4:07pm UTC](https://community.mp3tag.de/t/actions-set-artist-abum-folder-names-tags/18343/10 "2016-10-17T16:07:15Z")

</div>

confirming that the filter is working fine!

---

<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:26pm UTC](https://community.mp3tag.de/t/actions-set-artist-abum-folder-names-tags/18343/11 "2026-02-09T12:26:29Z")

</div>

Closed on February 9, 2026, 12:26pm UTC


