# Filename -\> Tag

**URL:** https://community.mp3tag.de/t/filename-tag/11726
**Category:** Support
**Created:** [March 15, 2011, 7:28pm UTC](https://community.mp3tag.de/t/filename-tag/11726 "2011-03-15T19:28:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![melanciauk](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/d9b06d/32.png) [@melanciauk](https://community.mp3tag.de/u/melanciauk)
#### Post date: [March 15, 2011, 7:28pm UTC](https://community.mp3tag.de/t/filename-tag/11726/1 "2011-03-15T19:28:49Z")

</div>

Hi,

Here's my question.  
I got loads of files to convert (put the tags based on the file names).  
Usually, my folders have the structure below:

ARTIST  
ALBUM\

```
TRACK_TITLE.MP3

```

But when it's a double disc or box set, etc, it comes like:

ARTIST  
ALBUM\

```
Disc xx\
  TRACK_TITLE.MP3

```

How can I run through all the folders/files making sure it'll not put Disc 01, Disc 02, etc, as the Album?

Does that make sense?

Thanks!

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [March 15, 2011, 7:58pm UTC](https://community.mp3tag.de/t/filename-tag/11726/2 "2011-03-15T19:58:16Z")

</div>

> [@Melancia](#):
>
> I got loads of files to convert (put the tags based on the file names).  
> Usually, my folders have the structure below:
> 
> ARTIST  
> ALBUM\
> 
> ```
> TRACK_TITLE.MP3
> 
> ```
> 
> But when it's a double disc or box set, etc, it comes like:
> 
> ARTIST  
> ALBUM\
> 
> ```
> Disc xx\
> TRACK_TITLE.MP3
> 
> ```
> 
> How can I run through all the folders/files making sure it'll not put Disc 01, Disc 02, etc, as the Album?

All file in one go:  
Action: **Guess Values**  
Sourceformat: **$regexp($regexp(%_path%,(disc|cd) \d+\\,,1),.\\(.+\\.+\\.+)..+,$1)_**  
_Guessing Pattern: **%artist%\%album%\%track%** _ **%title%**

or...

If you want to use the Converter instead, you can do so by combining it with the Filter (F3) and working in two steps:  
Step 1:  
Filter: **%_path% MATCHES (disc|cd) \*\d+\\_**  
_Converter: **Filename - Tag**  
Formatstring: **%artist%\%album%\%dummy%\%track%** _ **%title%**

Step 2:  
Filter: **NOT %_path% MATCHES (disc|cd) \*\d+\\_**  
_Converter: **Filename - Tag**  
Formatstring: **%artist%\%album%\%track%** _ **%title%**

---

<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:22pm UTC](https://community.mp3tag.de/t/filename-tag/11726/3 "2026-02-09T12:22:58Z")

</div>


