# not work this code

**URL:** <https://community.mp3tag.de/t/not-work-this-code/14778>\
**Category:** Support\
**Created:** [June 3, 2013, 12:56pm UTC](https://community.mp3tag.de/t/not-work-this-code/14778 "2013-06-03T12:56:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cron0sYX58](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/e95f7d/32.png) [@cron0sYX58](https://community.mp3tag.de/u/cron0sYX58)\
**Post date:** [June 3, 2013, 12:56pm UTC](https://community.mp3tag.de/t/not-work-this-code/14778/1 "2013-06-03T12:56:32Z")

</div>

Hi,

If I use this code don't work:  
$num(%\_counter%,$len(%\_total\_files%))

I have this in track tag:  
1  
2  
3  
...

I want get this:

01  
02  
03  
...

If I use the code I get this:

1  
2  
3  
...

can you solve it?

thank you for your program!

---

<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:** [June 3, 2013, 2:58pm UTC](https://community.mp3tag.de/t/not-work-this-code/14778/2 "2013-06-03T14:58:08Z")

</div>

> [@cron0sYX58](#):
>
> Hi,
> 
> If I use this code don't work:  
> $num(%\_counter%,$len(%\_total\_files%))  
> ...  
> I want get this:
> 
> 01  
> 02  
> 03  
> ...

You have to make sure that %\_total\_files% is filled (is it? Where do you get the value?).  
It may be simpler to just set a fixed number for the padding like "3". This will cater for 999 files.

And I do not think that this is a BUG but simply a request for support.

---

<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 9, 2026, 12:24pm UTC](https://community.mp3tag.de/t/not-work-this-code/14778/3 "2026-02-09T12:24:30Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


