# Renaming files with track and disk info

**URL:** https://community.mp3tag.de/t/renaming-files-with-track-and-disk-info/60457
**Category:** Support
**Created:** [March 23, 2023, 12:46pm UTC](https://community.mp3tag.de/t/renaming-files-with-track-and-disk-info/60457 "2023-03-23T12:46:08Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [March 23, 2023, 1:48pm UTC](https://community.mp3tag.de/t/renaming-files-with-track-and-disk-info/60457/5 "2023-03-23T13:48:37Z")

</div>

If your actual track fields contains the track and track total (like `1/9`) then using the format of `%track% %title%` will give you exactly that.

To strip off the slash and following disc totals, use the $num function as part of your string.  
`$num(%track%,2) %title%`

This could have been found in the search in a previous thread here.

> [@Convert Tag - Filename](https://community.mp3tag.de/t/convert-tag-filename/2074/2):
>
> Just use $num(%track%,2)

---

_[View the full topic](https://community.mp3tag.de/t/renaming-files-with-track-and-disk-info/60457)._
