# Add track # to file names

**URL:** https://community.mp3tag.de/t/add-track-to-file-names/7309
**Category:** General Discussion
**Created:** [October 9, 2008, 5:30pm UTC](https://community.mp3tag.de/t/add-track-to-file-names/7309 "2008-10-09T17:30:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ladmo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b5e925/32.png) [@Ladmo](https://community.mp3tag.de/u/Ladmo)
#### Post date: [October 9, 2008, 5:30pm UTC](https://community.mp3tag.de/t/add-track-to-file-names/7309/1 "2008-10-09T17:30:56Z")

</div>

In an attempt to clean up my 15k+ MP3 collection I've spent the past few months deleting all the numbers from the start of the file name. I now realize this was a mistake because the players I use most often (wmp and my PSP) won't sort by the track number in the tag. I would like to find a fast way to add the track numbers to the front of the file names so that it would look something like this:  
**01 - Introduction.mp3**

Can anyone help me to create an action that will transfer the track number info to the file name of the mp3's? Much thanks.

---

<div class="post-metadata">

### Author: ![Stevest](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/a698b9/32.png) [@Stevest](https://community.mp3tag.de/u/Stevest)
#### Post date: [October 9, 2008, 6:44pm UTC](https://community.mp3tag.de/t/add-track-to-file-names/7309/2 "2008-10-09T18:44:01Z")

</div>

**Action:** Format value  
**Field:** \_FILENAME  
**Format string:** $num(%track%,2) - %\_filename%

---

<div class="post-metadata">

### Author: ![Ladmo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b5e925/32.png) [@Ladmo](https://community.mp3tag.de/u/Ladmo)
#### Post date: [October 9, 2008, 7:04pm UTC](https://community.mp3tag.de/t/add-track-to-file-names/7309/3 "2008-10-09T19:04:09Z")

</div>

You are the man! Thanks for this!
