# Tool for Auto-numbering DISC Number

**URL:** https://community.mp3tag.de/t/tool-for-auto-numbering-disc-number/44229
**Category:** General Discussion
**Created:** [January 18, 2019, 10:01am UTC](https://community.mp3tag.de/t/tool-for-auto-numbering-disc-number/44229 "2019-01-18T10:01:10Z")
**Posts on this page:** 1
**Showing post:** 4

<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 18, 2019, 2:23pm UTC](https://community.mp3tag.de/t/tool-for-auto-numbering-disc-number/44229/4 "2019-01-18T14:23:46Z")

</div>

> [@mp3control](#):
>
> If no disc number is present, then get the number from the folder name.

You can already now harvest the foldername to get the discnumber.  
See the FAQs: [Converters to rename files or to import tags - #3 by Florian](https://community.mp3tag.de/t/converters-to-rename-files-or-to-import-tags/8016/3)

> [@mp3control](#):
>
> if a serie of track numbers are like "1-20,1-21,1-19"

If you sort this set of files by track number, so that all the 1s stick together, then the 2s and so on, then you could assign a discnumber with an action  
Format value for DISCNUMBER  
Format string: $add($div(%\_counter%,3),1)  
This should set 1 to the 1st, 2 to the 2nd, 3 to the 3rd file and then 1 to the 4th and so on.

---

_[View the full topic](https://community.mp3tag.de/t/tool-for-auto-numbering-disc-number/44229)._
