# Tracknumber format at Tag - Filename

**URL:** https://community.mp3tag.de/t/tracknumber-format-at-tag-filename/675
**Category:** Development
**Created:** [December 27, 2003, 3:24pm UTC](https://community.mp3tag.de/t/tracknumber-format-at-tag-filename/675 "2003-12-27T15:24:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [December 27, 2003, 3:24pm UTC](https://community.mp3tag.de/t/tracknumber-format-at-tag-filename/675/1 "2003-12-27T15:24:00Z")

</div>

Maybe a bit off-topic: the current version of MP3Tag will not convert the tracks from one digit to two when generating filenames (using Tag - Filename). Is it possible to have the old behaviour back?

If you don't understand what I mean, here is an example:

> [@](#):
>
> Track: 5  
> Title: Bubu  
> ...  
> Filename (using "%n %t"): **0** 5 Bubu

> [@](#):
>
> Track: 5  
> Title: Bubu  
> ...  
> Filename (using "%n %t"): 5 Bubu

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 27, 2003, 4:03pm UTC](https://community.mp3tag.de/t/tracknumber-format-at-tag-filename/675/2 "2003-12-27T16:03:13Z")

</div>

Sebastian,

IMO the old behaviour is not very logical, because it always exports tracknumbers with leading zeros and doesn't care about the track#-format in the tag.

I think a build in scripting function like $num(x,y) for Tag - Filename, which returns x as decimal number and pads with zeros up to y characters is more flexible.

With best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 28, 2003, 4:34pm UTC](https://community.mp3tag.de/t/tracknumber-format-at-tag-filename/675/3 "2003-12-28T16:34:11Z")

</div>

Current development build ships with $num(x,y) scripting command 🙂
