# Generating %DISCNUMBER% Tags

**URL:** https://community.mp3tag.de/t/generating-discnumber-tags/4117
**Category:** Support
**Created:** [November 28, 2006, 2:05pm UTC](https://community.mp3tag.de/t/generating-discnumber-tags/4117 "2006-11-28T14:05:05Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![shawncruiksh](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/58956e/32.png) [@shawncruiksh](https://community.mp3tag.de/u/shawncruiksh)
#### Post date: [November 28, 2006, 2:05pm UTC](https://community.mp3tag.de/t/generating-discnumber-tags/4117/1 "2006-11-28T14:05:05Z")

</div>

I'm trying to make MP3Tag automatically generate the discnumber field based on the folder structure. Can anyone help me out? I have very limited scripting knowledge - so I'm confused as to where I should even start...

I'd like MP3Tag to recognize if there is a folder in the parent directory named "CD1", "CD2", "CD3", etc., to automatically create a x/x tag in the discnumber field, correctly tagging which directory it is in - and generate a discnumber total.

Also - if there isn't - I would like it to tag 1/1 for the discnumber.

Can this be done?

Thanks very much! 😃

---

_[View the full topic](https://community.mp3tag.de/t/generating-discnumber-tags/4117)._
