# \[X\] tag - filename

**URL:** https://community.mp3tag.de/t/x-tag-filename/12913
**Category:** No Bugs
**Created:** [January 9, 2012, 7:30pm UTC](https://community.mp3tag.de/t/x-tag-filename/12913 "2012-01-09T19:30:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![R3P](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@R3P](https://community.mp3tag.de/u/R3P)
#### Post date: [January 9, 2012, 7:30pm UTC](https://community.mp3tag.de/t/x-tag-filename/12913/1 "2012-01-09T19:30:53Z")

</div>

Hi,  
I use foobar 2000 and its auto track number function. It adds to the tag of every track a number (1,2,3...) and also total number of tracks into each tag. When I use Mp3tag function tag-filename the result is...

e.g.

10 tracks in album

%track% - %title%

110 - ...  
210 - ...  
310 - ...  
410 - ...  
510 - ...  
610 - ...  
710 - ...  
810 - ...  
910 - ...  
1010 - ...

---

<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: [January 9, 2012, 7:40pm UTC](https://community.mp3tag.de/t/x-tag-filename/12913/2 "2012-01-09T19:40:53Z")

</div>

No bug.  
Well the track tag is 1/10, 2/10, ... but / is not possible in the file name and it is omitted so the result is 110

Use  
$num(%track%,1) or $num(%track%,2)

to format the track as you like.

---

<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, 2018, 2:31pm UTC](https://community.mp3tag.de/t/x-tag-filename/12913/3 "2018-12-28T14:31:48Z")

</div>

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