# Changing part of filename

**URL:** https://community.mp3tag.de/t/changing-part-of-filename/68557
**Category:** Support
**Created:** [May 20, 2025, 12:49pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557 "2025-05-20T12:49:46Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Light](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@Light](https://community.mp3tag.de/u/Light)
#### Post date: [May 20, 2025, 12:49pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/1 "2025-05-20T12:49:46Z")

</div>

I just want to change part of filename, in my case the number, from 000 to 001 and so on. I have so many files so it would be easier to do it in groups of about 20 files. Is that a way? The rest of the filename need to be untouched.

---

<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: [May 20, 2025, 12:58pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/2 "2025-05-20T12:58:19Z")

</div>

I don't quite understand - you want to increase a number by "1"?  
Or do you simply want to replace an existing number by a different one?  
Best for better suggestions would be a real example.

---

<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: [May 20, 2025, 1:05pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/3 "2025-05-20T13:05:49Z")

</div>

> [@Light](#):
>
> I just want to change part of filename, in my case the number, from 000 to 001 and so on.

And please let us know where you get the new number from?

An example with your current real filename and your new filename would help a lot.  
A [screenshot](https://community.mp3tag.de/t/hints-for-asking-support-requests/56190#use-screenshots-to-exemplify-the-issue-2) from your fields in Alt+ T where you probably get your number would help too.

---

<div class="post-metadata">

### Author: ![Light](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@Light](https://community.mp3tag.de/u/Light)
#### Post date: [May 20, 2025, 2:05pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/4 "2025-05-20T14:05:42Z")

</div>

The number is my way of organize a lot of music files into a larger work. I found out after about 35 pieces of music that I wanted to place some files before the ones that were already named.

---

<div class="post-metadata">

### Author: ![Light](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@Light](https://community.mp3tag.de/u/Light)
#### Post date: [May 20, 2025, 2:08pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/5 "2025-05-20T14:08:29Z")

</div>

I want to replace the number in the start of the filename, only the number.

---

<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: [May 20, 2025, 2:09pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/6 "2025-05-20T14:09:11Z")

</div>

As I said: a real example would help a lot.  
Without that:  
Try Convert\>Tag-Tag for \_FILENAME  
Format string: `$num(%_counter%,3) - $regexp(%_filename%,\d+ ,)`

---

<div class="post-metadata">

### Author: ![Light](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@Light](https://community.mp3tag.de/u/Light)
#### Post date: [May 20, 2025, 2:15pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/7 "2025-05-20T14:15:05Z")

</div>

![Name change](https://community.mp3tag.de/uploads/default/original/3X/5/7/57161f70a5bd2158784752614a96f4d9a0779731.jpeg)

---

<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: [May 20, 2025, 2:16pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/8 "2025-05-20T14:16:49Z")

</div>

Thank you.  
So select all files as %\_counter% always starts at "1".  
Then use the following  
Format string: `$num(%_counter%,3) - $regexp(%_filename%,\d+ - ,)`

---

<div class="post-metadata">

### Author: ![Light](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@Light](https://community.mp3tag.de/u/Light)
#### Post date: [May 20, 2025, 2:17pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/9 "2025-05-20T14:17:18Z")

</div>

All this files I want 001 in the start, and the following will therefore also need a change.

---

<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: [May 20, 2025, 2:19pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/10 "2025-05-20T14:19:40Z")

</div>

Please show us some NEW file names as you would like them after renaming.

---

<div class="post-metadata">

### Author: ![Light](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@Light](https://community.mp3tag.de/u/Light)
#### Post date: [May 20, 2025, 2:21pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/11 "2025-05-20T14:21:31Z")

</div>

001 - From the Earth to the Sky 01 - Medieval sacred ballad

---

<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: [May 20, 2025, 2:24pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/12 "2025-05-20T14:24:23Z")

</div>

Please show us 3 examples to see the principle behind it.

Like  
OLD:

```auto
000 - From the Earth to the Sky 01 - Medieval sacred ballad
000 - From the Earth to the Sky 02 - Medieval sacred ballad
000 - From the Earth to the Sky 03 - Medieval sacred ballad

```

NEW:

```auto
001 - From the Earth to the Sky 01 - Medieval sacred ballad
002 - From the Earth to the Sky 02 - Medieval sacred ballad
003 - From the Earth to the Sky 03 - Medieval sacred ballad

```

or  
NEW

```auto
001 - From the Earth to the Sky 01 - Medieval sacred ballad
001 - From the Earth to the Sky 02 - Medieval sacred ballad
001 - From the Earth to the Sky 03 - Medieval sacred ballad

```

---

<div class="post-metadata">

### Author: ![Light](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@Light](https://community.mp3tag.de/u/Light)
#### Post date: [May 20, 2025, 2:25pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/13 "2025-05-20T14:25:52Z")

</div>

The last example is the right, because they have all the same title.

---

<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: [May 20, 2025, 2:26pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/14 "2025-05-20T14:26:51Z")

</div>

So you just want to replace all occurings of `000` with `001`?

---

<div class="post-metadata">

### Author: ![Light](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@Light](https://community.mp3tag.de/u/Light)
#### Post date: [May 20, 2025, 2:27pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/15 "2025-05-20T14:27:15Z")

</div>

So all the files in the picture should have 001.

---

<div class="post-metadata">

### Author: ![Light](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@Light](https://community.mp3tag.de/u/Light)
#### Post date: [May 20, 2025, 2:29pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/16 "2025-05-20T14:29:48Z")

</div>

Yes, more than 30 pieces of music in many musical variations.

---

<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: [May 20, 2025, 2:31pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/17 "2025-05-20T14:31:55Z")

</div>

> [@Light](#):
>
> So all the files in the picture should have 001.

Then use  
Format string: `$replace(%_filename%,000,001)`

I do not have much hope to define a criterion that increases the generated number unless you use the track numbering wizard Ctrl-K with a suitable criterion like "New disc on change of TITLE" and you write that number to DISCNUMBER.  
Finally, you create a new filename from tags with that DISCNUMBER at the front.  
Otherwise I see no way to automate that.

---

<div class="post-metadata">

### Author: ![Light](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@Light](https://community.mp3tag.de/u/Light)
#### Post date: [May 20, 2025, 2:35pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/18 "2025-05-20T14:35:08Z")

</div>

It's importante to keep the rest of the name.

---

<div class="post-metadata">

### Author: ![Light](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@Light](https://community.mp3tag.de/u/Light)
#### Post date: [May 20, 2025, 2:36pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/19 "2025-05-20T14:36:47Z")

</div>

I do not need to increase the numbers in the group.

---

<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: [May 20, 2025, 2:38pm UTC](https://community.mp3tag.de/t/changing-part-of-filename/68557/20 "2025-05-20T14:38:25Z")

</div>

> [@Light](#):
>
> I do not need to increase the numbers

That makes it more difficult.  
Have you tried the track numbering wizard and checked what it wrote into DISCNUMBER?

[Next page](https://community.mp3tag.de/t/changing-part-of-filename/68557.md?page=2)
