Tag - Filename [Track Number Code]

I recall I used to have an format string as default that came with Mp3Tag, but I deleted, but Now I see it makes my live easier!

I rename all of my album's by this code

%album% - %track% - %title%

But say for instance the "track" field has the value "1"

it would rename files out as
"%album% - 1 - %title%.mp3"

I want to have the track field have an leading Zero "0" infront of it!

so that it will rename files as
%album% - 01 - %title%.mp3

Code used to be something like this i believe

%0,2)track%

Thanks in advance

P.s. works good for renaming MP4 files and other Audio files which dont allow you to put "01" in the track number.

It's $num(%track%,2)

But how are I replace track number 001, 002, ..., 010, 011, ..., 100, 101 with 1, 2, ..., 10, 11, ..., 100, 101 in the tag?

To change it in the tag:

Make a new action

Action type: Format value
Field: TRACK
Formatstring: [$num(%track%,1)]

Thanks, it work!

Thanks a Million!

Actually if I use the action above when I open the folder of an artist (which regroup all releases) I get :

Artist.....Album........Track
AAA......FIRST.........01
AAA......FIRST.........02
AAA......FIRST.........03
AAA......SECOND.....04
AAA......SECOND.....05
AAA......SECOND.....06
AAA......THIRD........07
AAA......THIRD........08

I want that the autonumbering with the "reset counter for each directory" option so I get:

Artist.....Album........Track
AAA......FIRST.........01
AAA......FIRST.........02
AAA......FIRST.........03
AAA......SECOND.....01
AAA......SECOND.....02
AAA......SECOND.....03
AAA......THIRD........01
AAA......THIRD........02

Any idea to get this ? :slight_smile:

Good question my friend, I usually go select it album by album and then AutoNumber it..

You also need to take in note that the songs are in actually order in which they should be renumbered!
.
.
.

Well, to make it simpler, what I'd want is already done by the "Autonumbering Wizard" button (with "Reset counter for each directory" option ticked).

I just would like to format the tracknumer tag with an action (so it's part my action group, and I don't forget to do it).

Basically i just need to know what is the RegEx formula of the "Autonumbering Wizard" button ?

counter resetting is not possible with the actions