# How to rename(reappoint) my file as follows without using the button of shortened

**URL:** https://community.mp3tag.de/t/how-to-rename-reappoint-my-file-as-follows-without-using-the-button-of-shortened/16307
**Category:** General Discussion
**Created:** [November 8, 2014, 12:21pm UTC](https://community.mp3tag.de/t/how-to-rename-reappoint-my-file-as-follows-without-using-the-button-of-shortened/16307 "2014-11-08T12:21:34Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 8, 2014, 12:21pm UTC](https://community.mp3tag.de/t/how-to-rename-reappoint-my-file-as-follows-without-using-the-button-of-shortened/16307/1 "2014-11-08T12:21:34Z")

</div>

Hello, how to rename(reappoint) my file as follows without using the button of shortened num(%track%,2) ~ %title% ~ %artist% ~ %album% ~ %year% ~ %genre% but what if %albumartist% is different that %artist% then to rename(reappoint) the file as am num(%track%,2) ~ %title% ~ %artist% ~ %albumartist% ~ %year% ~ %genre% but that if the name of the album exists but that the artist and different that albumartist then to rename(reappoint) the file as follows num(%track%,2) ~ %title% ~ %artist% ~ %albumartist% ~ %album% ~ %year% ~ %genre%

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [November 8, 2014, 1:07pm UTC](https://community.mp3tag.de/t/how-to-rename-reappoint-my-file-as-follows-without-using-the-button-of-shortened/16307/2 "2014-11-08T13:07:07Z")

</div>

> [@Sylvain.dmde](#):
>
> Hello, how to rename(reappoint) my file as follows without using the button of shortened num(%track%,2) ~ %title% ~ %artist% ~ %album% ~ %year% ~ %genre% but what if %albumartist% is different that %artist% then to rename(reappoint) the file as am num(%track%,2) ~ %title% ~ %artist% ~ %albumartist% ~ %year% ~ %genre%

Well I brooded some time about "button of shortened" but I still have no idea what you mean by this.  
Anyway:  
Use the Coverter Tag-Filenmame.  
$num(%track%,2) ~ %title% ~ $if($eql(%artist%,%albumartist%),%artist%,%artist% ~ %albumartist%) ~ %year% ~ %genre%

---

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 8, 2014, 2:34pm UTC](https://community.mp3tag.de/t/how-to-rename-reappoint-my-file-as-follows-without-using-the-button-of-shortened/16307/3 "2014-11-08T14:34:10Z")

</div>

Thank you for your answer but what is not exactly for what I looked.

I would like to have the name of file as follows

num(%track%,2) ~ %title % ~ %artist % ~ %album % ~ %year % ~ %genre %

But if artist and albumartist is different but if the album does not exist then named(appointed) the file as follows

num(%track%,2) ~ %title% ~ %artist% ~ %albumartist% ~ %year% ~ %genre%

But if artist and albumartist is different but if the album exists then named(appointed) the file as follows

num(%track%,2) ~ %title% ~ artist% ~ %albumartist% ~ %album% ~ %year% ~ %genre%

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [November 8, 2014, 4:09pm UTC](https://community.mp3tag.de/t/how-to-rename-reappoint-my-file-as-follows-without-using-the-button-of-shortened/16307/4 "2014-11-08T16:09:29Z")

</div>

$num(%track%,2) ~ %title% ~ $if($eql(%artist%,%albumartist%),%artist%,%artist% ~ %albumartist%) $if($eql(%artist%,%albumartist%),"",$if(%album%,~ %album% ,))~ %year% ~ %genre%

---

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 10, 2014, 6:20pm UTC](https://community.mp3tag.de/t/how-to-rename-reappoint-my-file-as-follows-without-using-the-button-of-shortened/16307/5 "2014-11-10T18:20:46Z")

</div>

When the artist, the albumartist is different without having of album he(it) names(appoints) me my file as that: num(%track%,2) ~ %title % ~ %artist %, %albumartist % ~ %year % ~ %genre%

It is very well.

When the artist, the albumartist is different aillant an album he(it) names(appoints) me my file as that: num(%track%,2) ~ %title% ~ %artist% ~ %albumartist% ~ %album% ~ %year% ~ %genre%

It is very well.

On the other hand:

When the artist, is equal by report(relationship) has the albumartist but when the album exists it names(appoints) me my file as that: num(%track%,2) ~ %title % ~ %artist% ~ %year% ~ %genre%

It is not good. He(it) should name(appoint) him(it) as that:

num(%track%,2) ~ %title% ~ %artist% ~ %album% ~ %year% ~ %genre%

The album misses(is lacking).

If you could help me to modify the code. In you thank.

---

<div class="post-metadata">

### Author: ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)
#### Post date: [November 10, 2014, 9:00pm UTC](https://community.mp3tag.de/t/how-to-rename-reappoint-my-file-as-follows-without-using-the-button-of-shortened/16307/6 "2014-11-10T21:00:45Z")

</div>

> [@Sylvain.dmde](#):
>
> Hello, how to rename(reappoint) my file as follows without using the button of shortened num(%track%,2) ~ %title% ~ %artist% ~ %album% ~ %year% ~ %genre% but what if %albumartist% is different that %artist% then to rename(reappoint) the file as am num(%track%,2) ~ %title% ~ %artist% ~ %albumartist% ~ %year% ~ %genre% but that if the name of the album exists but that the artist and different that albumartist then to rename(reappoint) the file as follows num(%track%,2) ~ %title% ~ %artist% ~ %albumartist% ~ %album% ~ %year% ~ %genre%

This is your regexp.  
$num(%track%,2) ~ %title% ~ %artist%$if($eql(%artist%,%albumartist%),,$regexp(%albumartist%,^(.+)$, ~ $1))$regexp(%album%,^(.+)$, ~ $1) ~ %year% ~ %genre%

---

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 10, 2014, 10:05pm UTC](https://community.mp3tag.de/t/how-to-rename-reappoint-my-file-as-follows-without-using-the-button-of-shortened/16307/7 "2014-11-10T22:05:54Z")

</div>

That's exactly right. Thank you for your answers. Thank you also Florian with its ultra preforming software.
