# renaming folders

**URL:** https://community.mp3tag.de/t/renaming-folders/10068
**Category:** General Discussion
**Created:** [March 9, 2010, 9:37pm UTC](https://community.mp3tag.de/t/renaming-folders/10068 "2010-03-09T21:37:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [March 9, 2010, 9:37pm UTC](https://community.mp3tag.de/t/renaming-folders/10068/1 "2010-03-09T21:37:52Z")

</div>

for renaming folder i use the following action:  
action \> format value \> field: \_DIRECTORY

works perfect, of course.  
just one little problem with characters which are not supported in folder and file names:  
/ \ \< \> : \* | ? "

mp3tag treats them as if there was no character at all, it just omits them.  
is there a way to get an underscore \_ instead of the special characters in the folder names?

---

<div class="post-metadata">

### Author: ![stanman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@stanman](https://community.mp3tag.de/u/stanman)
#### Post date: [March 10, 2010, 2:19am UTC](https://community.mp3tag.de/t/renaming-folders/10068/2 "2010-03-10T02:19:48Z")

</div>

This what I use for filenames, it replaces special characters with an underscore:

$validate(%artist% - %track% - %title%,\_)

You should be able to modify it for folders.

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [March 10, 2010, 12:42pm UTC](https://community.mp3tag.de/t/renaming-folders/10068/3 "2010-03-10T12:42:56Z")

</div>

Thanks, works perfectly.  
I had to place  
$validate(  
in front of the existing renaming actions and  
,\_)  
after it. Easy. Thanks.

That raises another question:

Is there any place in the forum or help page where I can look up all existing commands like this? Never heard of $vailidate(s,\_) before. Where can I look up those tricks? They appear in the forum all the time, but is there no place where all those little action commands are collected?

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [March 10, 2010, 12:58pm UTC](https://community.mp3tag.de/t/renaming-folders/10068/4 "2010-03-10T12:58:52Z")

</div>

ok, found it myself:  
[https://docs.mp3tag.de/scripting](https://docs.mp3tag.de/scripting)

first search, then ask.  
i know...
