# Total Number of Discs

**URL:** https://community.mp3tag.de/t/total-number-of-discs/51579
**Category:** Support
**Created:** [January 15, 2021, 4:36am UTC](https://community.mp3tag.de/t/total-number-of-discs/51579 "2021-01-15T04:36:34Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![jewahe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jewahe](https://community.mp3tag.de/u/jewahe)
#### Post date: [January 15, 2021, 4:36am UTC](https://community.mp3tag.de/t/total-number-of-discs/51579/1 "2021-01-15T04:36:34Z")

</div>

I typically order my mp3's using the structure: D:\Music{ARTIST} \ {DATE} {ALBUM}\

I use actions to reformat any files into this structure, but sometimes, of course, the albums are sorted into discs. I currently import a file with the number of discs for the current album, but would like a way to do this without user input.

The structure of any albums spanning multiple discs is D:\Music{ARTIST} \ { DATE} {ALBUM}\Disc ##

I've tried various methods, but I have not found a way to extract the total number of discs based on the folder structure. Can anyone provide guidance?

TIA!

---

<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 15, 2021, 5:18am UTC](https://community.mp3tag.de/t/total-number-of-discs/51579/2 "2021-01-15T05:18:48Z")

</div>

> [@jewahe](#):
>
> but I have not found a way to extract the total number of discs

Try the track numbering wizard (Options menu)

---

<div class="post-metadata">

### Author: ![jewahe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jewahe](https://community.mp3tag.de/u/jewahe)
#### Post date: [January 15, 2021, 5:22am UTC](https://community.mp3tag.de/t/total-number-of-discs/51579/3 "2021-01-15T05:22:53Z")

</div>

I took a look, and that still seems to require user input, unless I'm missing a way to incorporate the wizard into an Actions group.

---

<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 15, 2021, 5:25am UTC](https://community.mp3tag.de/t/total-number-of-discs/51579/4 "2021-01-15T05:25:02Z")

</div>

Yes. This is so. It requires user input.  
MP3tag does not know anything about albums but looks only at the current file. The only way around it is the wizard.

---

<div class="post-metadata">

### Author: ![jewahe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jewahe](https://community.mp3tag.de/u/jewahe)
#### Post date: [January 15, 2021, 5:30am UTC](https://community.mp3tag.de/t/total-number-of-discs/51579/5 "2021-01-15T05:30:16Z")

</div>

Would it be possible to use the Export and Loop functions so that it writes only the "greatest" disc number to a file?

---

<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 15, 2021, 5:51am UTC](https://community.mp3tag.de/t/total-number-of-discs/51579/6 "2021-01-15T05:51:54Z")

</div>

Perhaps this thread helps:

> [@How to set TOTALDISCS and TOTALTRACKS?](https://community.mp3tag.de/t/how-to-set-totaldiscs-and-totaltracks/12767):
>
> Sometimes there is the need to enumerate a large amount of files, which relate to different data media, e.g. album with 27 files stored on three CDs. It would be helpful to have a tag-field, automatically created into the track file, which holds the total amount of discs per album. Today Mp3tag has no readymade built-in support for this purpose, but we are not lost at all. We can use the Mp3tag services "export" and "actions" to proceed the enumeration automatically, to get the total values of…

---

<div class="post-metadata">

### Author: ![jewahe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jewahe](https://community.mp3tag.de/u/jewahe)
#### Post date: [January 16, 2021, 12:43am UTC](https://community.mp3tag.de/t/total-number-of-discs/51579/7 "2021-01-16T00:43:04Z")

</div>

I'd like a solution that doesn't require any intervention on my part, and while this script seems to work, it would require me to repeatedly delete the export file. I currently have a text file that I update with the total discs, and import that during the standard cleanup actions script I created. Half-dozen of one; six of the other.

---

<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: [February 9, 2026, 12:29pm UTC](https://community.mp3tag.de/t/total-number-of-discs/51579/8 "2026-02-09T12:29:00Z")

</div>


