# Filename -\> Tag Won't Run

**URL:** https://community.mp3tag.de/t/filename-tag-wont-run/3163
**Category:** Support
**Created:** [April 9, 2006, 3:46pm UTC](https://community.mp3tag.de/t/filename-tag-wont-run/3163 "2006-04-09T15:46:42Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![albinoazian](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/838e76/32.png) [@albinoazian](https://community.mp3tag.de/u/albinoazian)
#### Post date: [April 9, 2006, 3:46pm UTC](https://community.mp3tag.de/t/filename-tag-wont-run/3163/1 "2006-04-09T15:46:42Z")

</div>

I am using version 2.35 and have loaded a bunch of files (~765) and have set up a custom format string, but the ok button is not active. When I go to filename -\> tag everything else works (preview, cancel, help), but no the "ok". Here is my string:

%genre%%artist%%year% - %album% (%comment%) %track% - %title%

Any ideas?

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [April 9, 2006, 3:55pm UTC](https://community.mp3tag.de/t/filename-tag-wont-run/3163/2 "2006-04-09T15:55:42Z")

</div>

It's because the format string doesn't match the schema of your filenames.

Using %genre%%artist%%year% here is useless, because Mp3tag needs at least one character between the different fields to seperate them.

---

<div class="post-metadata">

### Author: ![albinoazian](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/838e76/32.png) [@albinoazian](https://community.mp3tag.de/u/albinoazian)
#### Post date: [April 9, 2006, 5:18pm UTC](https://community.mp3tag.de/t/filename-tag-wont-run/3163/3 "2006-04-09T17:18:38Z")

</div>

I see, it took away my / for sub directories. Duh, I should have noticed that.

---

<div class="post-metadata">

### Author: ![albinoazian](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/838e76/32.png) [@albinoazian](https://community.mp3tag.de/u/albinoazian)
#### Post date: [April 9, 2006, 5:31pm UTC](https://community.mp3tag.de/t/filename-tag-wont-run/3163/4 "2006-04-09T17:31:02Z")

</div>

> [@](#):
>
> I see, it took away my / for sub directories. Duh, I should have noticed that.
> 
> \<{POST\_SNAPBACK}\>

Ok, here is what I have:

f:\temp\unformatted\tag\genre\artist\year - album (comments)\nn - title

here is the string after i re-added the \

%genre%\%artist%\%year% - %album% (%comment%) %track% - %title%

Do I need to be more specific with the path? i.e. f:\temp\unformatted\tag\%genre%%artist%%year% - %album% (%comment%) %track% - %title%

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [April 9, 2006, 6:38pm UTC](https://community.mp3tag.de/t/filename-tag-wont-run/3163/5 "2006-04-09T18:38:04Z")

</div>

> [@](#):
>
> %genre%\%artist%\%year% - %album% (%comment%) %track% - %title%
> 
> \<{POST\_SNAPBACK}\>

Shouldn't your format string be:

%genre%\%artist%\%year% - %album% (%comment%)\%track% - %title%

---

<div class="post-metadata">

### Author: ![albinoazian](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/838e76/32.png) [@albinoazian](https://community.mp3tag.de/u/albinoazian)
#### Post date: [April 9, 2006, 6:46pm UTC](https://community.mp3tag.de/t/filename-tag-wont-run/3163/6 "2006-04-09T18:46:09Z")

</div>

Correctomundo. Sometimes it is the simplest things. I set up that way in tools/options, but when I went to filename -\>tag it removed my . Wierd, works now. Thanks.

---

<div class="post-metadata">

### Author: ![albinoazian](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/838e76/32.png) [@albinoazian](https://community.mp3tag.de/u/albinoazian)
#### Post date: [April 9, 2006, 6:53pm UTC](https://community.mp3tag.de/t/filename-tag-wont-run/3163/7 "2006-04-09T18:53:34Z")

</div>

> [@](#):
>
> Correctomundo. Sometimes it is the simplest things. I set up that way in tools/options, but when I went to filename -\>tag it removed my . Wierd, works now. Thanks.
> 
> \<{POST\_SNAPBACK}\>

One more fix needed. For albums that don't have a comment, it doesn't add tags for album and yar. Is there a method to do an if statement? For example, if (%comment%), . . ., ....) I put stuff like remaster, disc 1, etc. as a comment, but not all disks have comments. Suggestions?

---

<div class="post-metadata">

### Author: ![Ydope](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/6f9a4e/32.png) [@Ydope](https://community.mp3tag.de/u/Ydope)
#### Post date: [April 9, 2006, 7:44pm UTC](https://community.mp3tag.de/t/filename-tag-wont-run/3163/8 "2006-04-09T19:44:53Z")

</div>

> [@](#):
>
> One more fix needed. For albums that don't have a comment, it doesn't add tags for album and yar. Is there a method to do an if statement? For example, if (%comment%), . . ., ....) I put stuff like remaster, disc 1, etc. as a comment, but not all disks have comments. Suggestions?
> 
> \<{POST\_SNAPBACK}\>

You can create an action and use the if-statement like this:  
$if(x,y,z)  
if x is true (or exists) y is done otherwise z.

---

<div class="post-metadata">

### Author: ![albinoazian](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/838e76/32.png) [@albinoazian](https://community.mp3tag.de/u/albinoazian)
#### Post date: [April 9, 2006, 8:49pm UTC](https://community.mp3tag.de/t/filename-tag-wont-run/3163/9 "2006-04-09T20:49:36Z")

</div>

> [@](#):
>
> You can create an action and use the if-statement like this:  
> $if(x,y,z)  
> if x is true (or exists) y is done otherwise z.
> 
> \<{POST\_SNAPBACK}\>

Thanks for all of the help guys. One more issue. Since sometimes I had two items in parenthesis {(remaster) (disc 1)} I had to change my string a bit. I made the comments (remaster, mfsl, etc.) now {}. Anyhow, with this string:

$if(\%genre%\%artist%\%year% - %album% {%comment%}\%track% - %title%,%genre%\%artist%\%year% - %album% {%comment%}\%track% - %title%,%genre%\%artist%\%year% - %album%\%track% - %title%

everything works great except i get unformatted plus the artist name in the artist section (unformatted Punk Floyd). Where is my error? Every other tag worked great.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [April 11, 2006, 7:26am UTC](https://community.mp3tag.de/t/filename-tag-wont-run/3163/10 "2006-04-11T07:26:32Z")

</div>

$if() functions and scripting is not possible in Convert \> Filename - Tag

One soultion is that you use the converter two times:

First time this string:  
%genre%\%artist%\%year% - %album%\%track% - %title%

and then again on the same files this one:  
%genre%\%artist%\%year% - %album% {%comment%}\%track% - %title%

---

<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:19pm UTC](https://community.mp3tag.de/t/filename-tag-wont-run/3163/11 "2026-02-09T12:19:43Z")

</div>


