# Renaming problem when using %\_filename\_ext%

**URL:** https://community.mp3tag.de/t/renaming-problem-when-using-filename-ext/13769
**Category:** No Bugs
**Created:** [August 17, 2012, 3:08pm UTC](https://community.mp3tag.de/t/renaming-problem-when-using-filename-ext/13769 "2012-08-17T15:08:25Z")
**Posts on this page:** 2
**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: [August 17, 2012, 3:08pm UTC](https://community.mp3tag.de/t/renaming-problem-when-using-filename-ext/13769/1 "2012-08-17T15:08:25Z")

</div>

If I define a column containing bot the filename and extension, as in

Name: Whatever  
Value: %\_filename\_ext%  
Field: %\_filename\_ext%

And I edit the name by changing the extension

01 Some Music.flac

to

01 Some Music.bak

Mp3tag automatically re-adds the extension again and the file end up being renamed to

01 Some Music.bak.flac

Mp3tag needs to be smarter when the value and field contain the extension, and not add the old extension when renaming the file.

---

<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:32pm UTC](https://community.mp3tag.de/t/renaming-problem-when-using-filename-ext/13769/2 "2018-12-28T14:32:07Z")

</div>

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