# Remove field from filename.

**URL:** https://community.mp3tag.de/t/remove-field-from-filename/17753
**Category:** General Discussion
**Created:** [March 15, 2016, 10:26am UTC](https://community.mp3tag.de/t/remove-field-from-filename/17753 "2016-03-15T10:26:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![X-Tropic](https://community.mp3tag.de/user_avatar/community.mp3tag.de/x-tropic/32/7536_2.png) [@X-Tropic](https://community.mp3tag.de/u/X-Tropic)
#### Post date: [March 15, 2016, 10:26am UTC](https://community.mp3tag.de/t/remove-field-from-filename/17753/1 "2016-03-15T10:26:45Z")

</div>

Hi! I have track, for example: "Roger Sanchez - My Way (Original Mix) Stealth Records"

I import "Stealth Records" to publisher...

open mp3tag...  
choose guess values,  
source format: %\_filename%  
guessing pattern: %\_filename%) %publisher%

and "Stealth Records" copy to %publisher%.

How to remove "Stealth Records" from filename???

Thanks.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [March 15, 2016, 11:49am UTC](https://community.mp3tag.de/t/remove-field-from-filename/17753/2 "2016-03-15T11:49:11Z")

</div>

> [@X-Tropic](#):
>
> Hi! I have track, for example: "Roger Sanchez - My Way (Original Mix) Stealth Records" ...

Hmm, it seems like you have found a bug in Mp3tag v2.75, ...  
because Mp3tag treats the variable %\_filename% as a writeable tag-field ...  
within the action "Guess values".

After running your proposed exploit ...  
Action "Guess values"  
source format: %\_filename%  
guessing pattern: %\_filename%) %publisher%

... the variable %\_filename% has this content ...

**$left(%\_filename%,$len(%\_filename%)) ==\> 'Roger Sanchez - My Way (Original Mix'**

The original filename has not been changed.

DD.20160315.1348.CET

---

<div class="post-metadata">

### Author: ![X-Tropic](https://community.mp3tag.de/user_avatar/community.mp3tag.de/x-tropic/32/7536_2.png) [@X-Tropic](https://community.mp3tag.de/u/X-Tropic)
#### Post date: [March 15, 2016, 11:56am UTC](https://community.mp3tag.de/t/remove-field-from-filename/17753/3 "2016-03-15T11:56:35Z")

</div>

My version is 2.57. 🙂

Ok, how to move text after ")" to publisher and remove this from filename?

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [March 15, 2016, 12:15pm UTC](https://community.mp3tag.de/t/remove-field-from-filename/17753/4 "2016-03-15T12:15:03Z")

</div>

> [@X-Tropic](#):
>
> Hi! I have track, for example: "Roger Sanchez - My Way (Original Mix) Stealth Records" ... I import "Stealth Records" to publisher... How to remove "Stealth Records" from filename??? Thanks.

**\_FILENAME \<== 'Roger Sanchez - My Way (Original Mix) Stealth Records' 1. Action "Guess values" Source format ..: %\_filename% Guessing pattern: %DUMMY%) %PUBLISHER% 2. Action "Format value" Field: \_FILENAME Formatstring: $cutRight(%\_filename%,$len(' '%PUBLISHER%)) ... or ... Formatstring: $replace(%\_filename%'\*',' '%PUBLISHER%'\*',)**

DD.20160315.1414.CET

---

<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: [March 15, 2016, 12:22pm UTC](https://community.mp3tag.de/t/remove-field-from-filename/17753/5 "2016-03-15T12:22:37Z")

</div>

> [@X-Tropic](#):
>
> My version is 2.57. 🙂
> 
> Ok, how to move text after ")" to publisher and remove this from filename?

Convert\>Filename-Filename  
Source: %1) %2  
Target: %1)

---

<div class="post-metadata">

### Author: ![X-Tropic](https://community.mp3tag.de/user_avatar/community.mp3tag.de/x-tropic/32/7536_2.png) [@X-Tropic](https://community.mp3tag.de/u/X-Tropic)
#### Post date: [March 15, 2016, 12:27pm UTC](https://community.mp3tag.de/t/remove-field-from-filename/17753/6 "2016-03-15T12:27:32Z")

</div>

It's work! Big thanks)
