# Help with tag -\> filename scripting

**URL:** https://community.mp3tag.de/t/help-with-tag-filename-scripting/63590
**Category:** Support
**Created:** [January 28, 2024, 3:06pm UTC](https://community.mp3tag.de/t/help-with-tag-filename-scripting/63590 "2024-01-28T15:06:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tvrxujfdtzds](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/ed8c4c/32.png) [@tvrxujfdtzds](https://community.mp3tag.de/u/tvrxujfdtzds)
#### Post date: [January 28, 2024, 3:06pm UTC](https://community.mp3tag.de/t/help-with-tag-filename-scripting/63590/1 "2024-01-28T15:06:33Z")

</div>

I want the following:

1. 1 leading 0 if total tracks for album/folder \< 100

2: 2 leading 0s if total tracks for album/foilder \>= 100

how can I do it? Thank you.

---

<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: [January 28, 2024, 3:09pm UTC](https://community.mp3tag.de/t/help-with-tag-filename-scripting/63590/2 "2024-01-28T15:09:50Z")

</div>

Try the auto-numbering wizard Ctrl-K and tick "Leading zeros".

For more detailed help you would have to show us the tag data and the format string that you use in Convert\>Tag-Filename.

---

<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:30pm UTC](https://community.mp3tag.de/t/help-with-tag-filename-scripting/63590/3 "2026-02-09T12:30:14Z")

</div>


