# Reorganizing music folders

**URL:** https://community.mp3tag.de/t/reorganizing-music-folders/13077
**Category:** Support
**Created:** [February 10, 2012, 11:01am UTC](https://community.mp3tag.de/t/reorganizing-music-folders/13077 "2012-02-10T11:01:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![baardog](https://community.mp3tag.de/user_avatar/community.mp3tag.de/baardog/32/386_2.png) [@baardog](https://community.mp3tag.de/u/baardog)
#### Post date: [February 10, 2012, 11:01am UTC](https://community.mp3tag.de/t/reorganizing-music-folders/13077/1 "2012-02-10T11:01:56Z")

</div>

Hi, I just started to explore MP3TAG, and I searched through the forum, but could not find a solution to my little problem. I want to reorganize my music folders. I want this to be my final result.

c:\music\B\Beatles(1965) Rubber Soul\CD1  
c:\music\B\Beatles(1965) Rubber Soul\CD2  
c:\music\B\Beatles(1969) Abbey Road  
c:\music\C\Cramps(1986) A Date with Elvis\

 

I guesss i have to use:  
**Action:** Format Value  
**Field:** \_DIRECTORY

 

c:\music\<b\>first\_letter\_of\_albumartist\_excluding\_the\_"The"\_prefix\_of\_band\_name\%albumartist%(%year%) %album%\<b\>if\_multiple\_discs\_CD#\filename

 

But how do I achieve to make the folder with first letter, excluding the **The** of the band name, and how do I create the folder of the CD#, that should only be there for multiple discs?

 

Any ideas on how to achive this?

 

baard

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [February 10, 2012, 12:25pm UTC](https://community.mp3tag.de/t/reorganizing-music-folders/13077/2 "2012-02-10T12:25:21Z")

</div>

See "Help - Scripting functions"  
`c:\music\$left($regexp(%albumartist%,^The ,),1)\\%albumartist%\(%year%) %album%[\CD$num(%discnumber%,1)]`

The discnumber tag must only be present at files with multiple cd's.

Note: The format value action on \_DIRECTORY is only suitable if all files of each album are already in separate folders.

---

<div class="post-metadata">

### Author: ![baardog](https://community.mp3tag.de/user_avatar/community.mp3tag.de/baardog/32/386_2.png) [@baardog](https://community.mp3tag.de/u/baardog)
#### Post date: [February 16, 2012, 6:59am UTC](https://community.mp3tag.de/t/reorganizing-music-folders/13077/3 "2012-02-16T06:59:38Z")

</div>

thanks

baard

---

<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:23pm UTC](https://community.mp3tag.de/t/reorganizing-music-folders/13077/4 "2026-02-09T12:23:39Z")

</div>


