# Autonumbering Via Actions

**URL:** https://community.mp3tag.de/t/autonumbering-via-actions/7218
**Category:** Support
**Created:** [September 20, 2008, 12:14pm UTC](https://community.mp3tag.de/t/autonumbering-via-actions/7218 "2008-09-20T12:14:30Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![chayes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@chayes](https://community.mp3tag.de/u/chayes)
#### Post date: [September 20, 2008, 12:14pm UTC](https://community.mp3tag.de/t/autonumbering-via-actions/7218/1 "2008-09-20T12:14:30Z")

</div>

HI

I want to autonumber some tracks via the actions dialog.

I want to renumber with the tracks to have leading zeros , and to reset the counter for each directory.

I know i can do this from the wizard in the toolbar , but am trying to construct an action to do it.

Can someone help with the formula? I know it must involve %\_counter% , but am unable to refine it personally.

Grateful for any assistance.

Best Wishes

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [September 20, 2008, 12:44pm UTC](https://community.mp3tag.de/t/autonumbering-via-actions/7218/2 "2008-09-20T12:44:29Z")

</div>

You can do it for one folder only because it is not possible to reset the counter when you use actions.

---

<div class="post-metadata">

### Author: ![chayes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@chayes](https://community.mp3tag.de/u/chayes)
#### Post date: [September 20, 2008, 5:34pm UTC](https://community.mp3tag.de/t/autonumbering-via-actions/7218/3 "2008-09-20T17:34:54Z")

</div>

Ok thanks for that.

Do you know then what the code would be to autonumber with leading zeros?

Best wishes

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [September 20, 2008, 7:29pm UTC](https://community.mp3tag.de/t/autonumbering-via-actions/7218/4 "2008-09-20T19:29:52Z")

</div>

$num(%\_counter%,2)  
or  
$num(%\_counter%,2)/$num(%\_total\_files%,2)

---

<div class="post-metadata">

### Author: ![chayes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@chayes](https://community.mp3tag.de/u/chayes)
#### Post date: [September 20, 2008, 8:22pm UTC](https://community.mp3tag.de/t/autonumbering-via-actions/7218/5 "2008-09-20T20:22:21Z")

</div>

Hi

ok that's great - thanks for your help.

Best Wishes

---

<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: [August 7, 2025, 2:45pm UTC](https://community.mp3tag.de/t/autonumbering-via-actions/7218/6 "2025-08-07T14:45:06Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
