# Copy Cat Number from Folder name to %catalog #%

**URL:** https://community.mp3tag.de/t/copy-cat-number-from-folder-name-to-catalog/8162
**Category:** Support
**Created:** [March 28, 2009, 12:32pm UTC](https://community.mp3tag.de/t/copy-cat-number-from-folder-name-to-catalog/8162 "2009-03-28T12:32:50Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![privatewid](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/34f0e0/32.png) [@privatewid](https://community.mp3tag.de/u/privatewid)
#### Post date: [March 28, 2009, 12:32pm UTC](https://community.mp3tag.de/t/copy-cat-number-from-folder-name-to-catalog/8162/1 "2009-03-28T12:32:50Z")

</div>

Hi,

I have some mp3s that do not contain the catalog numbers in them. The folders in which they reside though do contain the catalog number. Does anyone know what action it would be to copy the cat numbers from the folder names into the %catalog #% field in the tag?

The folders are in the format: Artist\_-\_Release-(CATNUMBER)-Year

Many thanks in advance

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [March 28, 2009, 1:34pm UTC](https://community.mp3tag.de/t/copy-cat-number-from-folder-name-to-catalog/8162/2 "2009-03-28T13:34:06Z")

</div>

> [@The Sheriff](#):
>
> ... Does anyone know what action it would be to copy the cat numbers from the folder names into the %catalog #% field in the tag? The folders are in the format: Artist\_-\_Release-(CATNUMBER)-Year ...

_Actiontype 7:_ **Import tag fields (guess values)**  
_Source format:_ **%_directory%_**  
 _Guessing pattern: **%dummy%** _**-\_%dummy%-(%catalog÷#%)-%dummy%**

Note: Replace one special character ÷ with one space character.

DD.20090328.1533.CET

---

<div class="post-metadata">

### Author: ![privatewid](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/34f0e0/32.png) [@privatewid](https://community.mp3tag.de/u/privatewid)
#### Post date: [March 28, 2009, 1:49pm UTC](https://community.mp3tag.de/t/copy-cat-number-from-folder-name-to-catalog/8162/3 "2009-03-28T13:49:12Z")

</div>

> [@DetlevD](#):
>
> _Actiontype 7:_ **Import tag fields (guess values)**  
> _Source format:_ **%_directory%_**  
> _Guessing pattern: **%dummy%** _**-\_%dummy%-(%catalog÷#%)-%dummy%**
> 
> Note: Replace one special character ÷ with one space character.
> 
> DD.20090328.1533.CET

Thanks DetlevD works like a charm!

It looks like a can finally dump the Visual Basic program I've been trying to get to work to do the same thing!

I have one more request it thats ok?  
Is it possible to to append something to the Album field based on what is found in the filename?  
For example a folder is in this format: Artist\_-\_Release-(CATNUMBER)-Year-Source  
If the Album field contains 'Release 001" and the Source in the folder name was 'SHOP' then could SHOP be appended to Release 001 to make Album: Release 001 SHOP ?

Many thanks again

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [March 28, 2009, 3:01pm UTC](https://community.mp3tag.de/t/copy-cat-number-from-folder-name-to-catalog/8162/4 "2009-03-28T15:01:45Z")

</div>

> [@The Sheriff](#):
>
> ... Thanks DetlevD works like a charm! ... Is it possible to to append something to the Album field based on what is found in the filename? For example a folder is in this format: Artist\_-\_Release-(CATNUMBER)-Year-Source  
> If the Album field contains 'Release 001" and the Source in the folder name was 'SHOP' then could SHOP be appended to Release 001 to make Album: Release 001 SHOP ? ...

Good to hear that it works for you!

Climbing up to the next level ...

Begin Actionsgroup **20090328.Test.The Sheriff**

Action #1  
_Actiontype 7:_ **Import tag fields (guess values)**  
_Source format:_ **%_directory%_**  
 _Guessing pattern: **%dummy%** _**-\_%dummy%-(%CATALOG÷#%)-%dummy%-%SOURCE%**

Action #2  
_Actiontype 5:_ **Format tag field**  
_Field:_ **ALBUM**  
_Formatstring:_ **%ALBUM% %SOURCE%**

_If you want to remove the previously created tag field "SOURCE" ..._

Action #3  
_Actiontype 9:_ **Remove fields**  
_Fields to remove (semicolon separated):_ **SOURCE**

Note: Replace one special character ÷ with one space character.  
End Actionsgroup **20090328.Test.The Sheriff** (3 Actions)

DD.20090328.1700.CET

---

<div class="post-metadata">

### Author: ![privatewid](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/34f0e0/32.png) [@privatewid](https://community.mp3tag.de/u/privatewid)
#### Post date: [March 2, 2011, 10:21pm UTC](https://community.mp3tag.de/t/copy-cat-number-from-folder-name-to-catalog/8162/5 "2011-03-02T22:21:19Z")

</div>

> [@DetlevD](#):
>
> Good to hear that it works for you!
> 
> Climbing up to the next level ...
> 
> Begin Actionsgroup **20090328.Test.The Sheriff**
> 
> Action #1  
> _Actiontype 7:_ **Import tag fields (guess values)**  
> _Source format:_ **%_directory%_**  
> _Guessing pattern: **%dummy%** _**-\_%dummy%-(%CATALOG÷#%)-%dummy%-%SOURCE%**
> 
> Action #2  
> _Actiontype 5:_ **Format tag field**  
> _Field:_ **ALBUM**  
> _Formatstring:_ **%ALBUM% %SOURCE%**
> 
> _If you want to remove the previously created tag field "SOURCE" ..._
> 
> Action #3  
> _Actiontype 9:_ **Remove fields**  
> _Fields to remove (semicolon separated):_ **SOURCE**
> 
> Note: Replace one special character ÷ with one space character.  
> End Actionsgroup **20090328.Test.The Sheriff** (3 Actions)
> 
> DD.20090328.1700.CET

Sorry I'm late with the thanks! Cheers for this, I still use it to this day!

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [March 13, 2011, 9:14am UTC](https://community.mp3tag.de/t/copy-cat-number-from-folder-name-to-catalog/8162/6 "2011-03-13T09:14:16Z")

</div>

> [@The Sheriff](#):
>
> Sorry I'm late with the thanks! Cheers for this, I still use it to this day!

Hi 'The Sheriff', your thanks has been received, thanks back!

DD.20110313.1120.CET

---

<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:21pm UTC](https://community.mp3tag.de/t/copy-cat-number-from-folder-name-to-catalog/8162/7 "2026-02-09T12:21:27Z")

</div>


