# Disc number from folder name

**URL:** https://community.mp3tag.de/t/disc-number-from-folder-name/52985
**Category:** Support
**Created:** [April 27, 2021, 6:22pm UTC](https://community.mp3tag.de/t/disc-number-from-folder-name/52985 "2021-04-27T18:22:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![apl4](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@apl4](https://community.mp3tag.de/u/apl4)
#### Post date: [April 27, 2021, 6:22pm UTC](https://community.mp3tag.de/t/disc-number-from-folder-name/52985/1 "2021-04-27T18:22:51Z")

</div>

Hi, I’m after some help. I’m trying to set the disc number of multiple MP3’s, based on the folder name.  
There are 115 folders with multiple files in each. I want each file to have a ??/115 set depending on the folder it is in. All folders are named with just a number.  
There are over 2500 files.

Any suggestions?

---

<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: [April 27, 2021, 6:31pm UTC](https://community.mp3tag.de/t/disc-number-from-folder-name/52985/2 "2021-04-27T18:31:02Z")

</div>

See the [FAQs](https://community.mp3tag.de/t/converters-to-rename-files-or-to-import-tags/8016/3)

---

<div class="post-metadata">

### Author: ![apl4](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@apl4](https://community.mp3tag.de/u/apl4)
#### Post date: [April 27, 2021, 7:15pm UTC](https://community.mp3tag.de/t/disc-number-from-folder-name/52985/3 "2021-04-27T19:15:38Z")

</div>

OK, thanks. I think I've figured that out to give me the disc number, however, how do I add the total number of discs to the %Discnumber% tag?

---

<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: [April 27, 2021, 7:19pm UTC](https://community.mp3tag.de/t/disc-number-from-folder-name/52985/4 "2021-04-27T19:19:00Z")

</div>

See the [FAQs](https://community.mp3tag.de/t/actions-and-batch-operations/967/5).

---

<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/disc-number-from-folder-name/52985/5 "2026-02-09T12:29:12Z")

</div>


