# Move feat. to filename

**URL:** https://community.mp3tag.de/t/move-feat-to-filename/63314
**Category:** Support
**Created:** [January 4, 2024, 3:04pm UTC](https://community.mp3tag.de/t/move-feat-to-filename/63314 "2024-01-04T15:04:39Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![danielstoica](https://community.mp3tag.de/user_avatar/community.mp3tag.de/danielstoica/32/15796_2.png) [@danielstoica](https://community.mp3tag.de/u/danielstoica)
#### Post date: [January 4, 2024, 3:04pm UTC](https://community.mp3tag.de/t/move-feat-to-filename/63314/1 "2024-01-04T15:04:39Z")

</div>

Hello guys!

Please help! I need to rename the filename from tags considering "feat." string from %Artist% field. Values from %Artist% could be:

1. String
2. String feat. String2
3. String feat. String2, String3, StringN & String N+1

What I want to achieve into filename based on the options above is:

1:  
FROM: 2Pac - How Do U Want It  
TO: 05. How Do U Want It  
2:  
FROM: 2Pac feat. KC - How Do U Want It  
TO: 05. How Do U Want It (feat. KC)  
3:  
FROM: 2Pac feat. KC & Jojo - How Do U Want It  
TO: 05. How Do U Want It (feat. KC & Jojo)

where 05 is value from %track%  
Basically I need to create this pattern in filename: %track%. %title% (but considering to add feat. information from artist to filename.

Regards!  
Daniel

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [January 4, 2024, 3:17pm UTC](https://community.mp3tag.de/t/move-feat-to-filename/63314/2 "2024-01-04T15:17:56Z")

</div>

What exactly is the current content in ARTIST for your 3 examples?

As far as I understand you want to combine  
%TRACK%. %TITLE% and add a part from ARTIST

Therefore we need to see what exactly you have actually in ARTIST.

---

<div class="post-metadata">

### Author: ![danielstoica](https://community.mp3tag.de/user_avatar/community.mp3tag.de/danielstoica/32/15796_2.png) [@danielstoica](https://community.mp3tag.de/u/danielstoica)
#### Post date: [January 4, 2024, 3:27pm UTC](https://community.mp3tag.de/t/move-feat-to-filename/63314/3 "2024-01-04T15:27:21Z")

</div>

hello!

In Artist I have exactly what I've wrote in "FROM".  
eg: 2Pac or  
2Pac feat. KC - How Do U Want It or  
2Pac feat. KC & Jojo - How Do U Want It

Regards!

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [January 4, 2024, 3:51pm UTC](https://community.mp3tag.de/t/move-feat-to-filename/63314/4 "2024-01-04T15:51:49Z")

</div>

Just to be clear - you want to add all of that detail specifically into the `_FILENAME` itself, and not into a part of the `TITLE` or some other component of the metadata? Often this can lead to introducing some invalid filename characters.

From your examples it isn't really clear. It is always best to post a screenshot of these in mp3tag for some files you want to change.

---

<div class="post-metadata">

### Author: ![danielstoica](https://community.mp3tag.de/user_avatar/community.mp3tag.de/danielstoica/32/15796_2.png) [@danielstoica](https://community.mp3tag.de/u/danielstoica)
#### Post date: [January 4, 2024, 3:55pm UTC](https://community.mp3tag.de/t/move-feat-to-filename/63314/5 "2024-01-04T15:55:41Z")

</div>

![Untitled](https://community.mp3tag.de/uploads/default/original/2X/e/e8f80dfaa57897a994cde0579552fa71549afef7.jpeg)

---

<div class="post-metadata">

### Author: ![danielstoica](https://community.mp3tag.de/user_avatar/community.mp3tag.de/danielstoica/32/15796_2.png) [@danielstoica](https://community.mp3tag.de/u/danielstoica)
#### Post date: [January 4, 2024, 3:57pm UTC](https://community.mp3tag.de/t/move-feat-to-filename/63314/6 "2024-01-04T15:57:37Z")

</div>

I just want to rename de \_filename using tags values like this:  
%track%. %title% (feat. part if any, if not should have just title)

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [January 4, 2024, 4:28pm UTC](https://community.mp3tag.de/t/move-feat-to-filename/63314/7 "2024-01-04T16:28:47Z")

</div>

You can use the Converter Tag - Filename with a string like this;  
Format String: `%track%. %title%[feat. %mixartist%]`

The parts contained within the square brackets is only processed if any placeholder contents exist for each file. `[feat. %mixartist%]`  
Note that the Converter does show you a preview, so you can see the changes expected.

If you haven't separated the %artist% and %mixartist% details you may want to consider that for simplifying this. So your example artist "2Pac feat. KC & Jojo" would then become:  
ARTIST; `2Pac`  
MIXARTIST; `KC & Jojo`  
There are many threads here that explain in more detail how this can be done.

---

<div class="post-metadata">

### Author: ![danielstoica](https://community.mp3tag.de/user_avatar/community.mp3tag.de/danielstoica/32/15796_2.png) [@danielstoica](https://community.mp3tag.de/u/danielstoica)
#### Post date: [January 4, 2024, 4:33pm UTC](https://community.mp3tag.de/t/move-feat-to-filename/63314/8 "2024-01-04T16:33:20Z")

</div>

I've done it by formating value of \_FILENAME like this:  
`$ifgreater($strstr($lower(%artist%), 'feat.'),0,%track%. %title% $regexp(%artist%,(.*) feat. (.*),'('feat. $2')'),%track%. %title%)`

🙂 thanks a lot!

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [January 4, 2024, 4:36pm UTC](https://community.mp3tag.de/t/move-feat-to-filename/63314/9 "2024-01-04T16:36:38Z")

</div>

Would you mind to explain how your last format string works?

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [January 4, 2024, 4:42pm UTC](https://community.mp3tag.de/t/move-feat-to-filename/63314/10 "2024-01-04T16:42:57Z")

</div>

There is usually more than one way to achieve a result. If your current method gets what you want, then that is great.

But I suggest a more generic and simple solution that is easier to manage for future results as well, rather than something that only works on one or two very specific conditions.

---

<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 3, 2024, 4:43pm UTC](https://community.mp3tag.de/t/move-feat-to-filename/63314/11 "2024-02-03T16:43:08Z")

</div>

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