# \[F\] Problem with renaming file using illegal character

**URL:** https://community.mp3tag.de/t/f-problem-with-renaming-file-using-illegal-character/7282
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [October 3, 2008, 10:40pm UTC](https://community.mp3tag.de/t/f-problem-with-renaming-file-using-illegal-character/7282 "2008-10-03T22:40:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![JJ\_Johnson](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jj_johnson/32/67_2.png) [@JJ\_Johnson](https://community.mp3tag.de/u/JJ_Johnson)
#### Post date: [October 3, 2008, 10:40pm UTC](https://community.mp3tag.de/t/f-problem-with-renaming-file-using-illegal-character/7282/1 "2008-10-03T22:40:52Z")

</div>

I have an action that renames a file using tracknumber and title.

First, copy %title% to %tmp\_title%

Then Replace several illegal characters in this string, for example:  
/ -\> " - "  
: -\> "-"  
? -\> ""

Then rename the file:

Format value  
Field: \_FILENAME  
Format string: $num(%track%,2) %tmp\_title%

I didn't handle every possible illegal Windows filename character in my Replace actions, so when Mp3tag encountered an asterisk in a track title (Track title is "F.I.N.E.\*"), it _thought_ it renamed the file with the asterisk. After running the action group, Mp3tag shows the filename as

02 F.I.N.E.\*

which is impossible.

If I had selected all files (as I usually do) Mp3tag leaves all of them selected, including the one that doesn't exist. Trying to run an action on the group of files afterward throws an error. If you unselect all and then try to select the non-existent one, then Mp3 tag shows all blank fields.

---

<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: [October 14, 2008, 6:03pm UTC](https://community.mp3tag.de/t/f-problem-with-renaming-file-using-illegal-character/7282/2 "2008-10-14T18:03:37Z")

</div>

Can you reproduce this with v2.41c?

---

<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: [December 4, 2008, 7:44pm UTC](https://community.mp3tag.de/t/f-problem-with-renaming-file-using-illegal-character/7282/3 "2008-12-04T19:44:58Z")

</div>

Bug marked as Fixed.

---

<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: [December 28, 2018, 2:01pm UTC](https://community.mp3tag.de/t/f-problem-with-renaming-file-using-illegal-character/7282/4 "2018-12-28T14:01:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
