# Mass Tag/Filename Conversion

**URL:** https://community.mp3tag.de/t/mass-tag-filename-conversion/11663
**Category:** Support
**Created:** [March 4, 2011, 2:43am UTC](https://community.mp3tag.de/t/mass-tag-filename-conversion/11663 "2011-03-04T02:43:13Z")
**Posts on this page:** 1
**Showing post:** 5

<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 5, 2011, 6:33pm UTC](https://community.mp3tag.de/t/mass-tag-filename-conversion/11663/5 "2011-03-05T18:33:32Z")

</div>

> [@bd59903](#):
>
> I use mp3tag for my HUGE audiobook collection  
> at the moment I do the following steps 1 at a time:
> 
> 1. tag track #s
> 2. rename file according to directory (track # - directory)
> 3. get tag values from file name (title, author, album(series name) etc)
> 4. change title to "title - track #"
> 
> I think i can do this all in one step using "actions" but i cannot figure out how to handle the fact that in mass processing, some books have album values (series name) while others are "stand alone" books

Create a Action Group (FAQs: [Actions](https://community.mp3tag.de/t/967/2) ) with the following:

1. tag track #s  
Action: Format Value  
Field: TRACK  
Formatstring: %\_counter%  
(this can't reset the tracknumber for every folder. if this function is needed, you have to put this out for the actiongroup and use the Track Number Wizard, which can't be used as part of a action group)

2. rename file according to directory (track # - directory)  
Action: Format Value  
Field: \_FILENAME  
Formatstring: %track% - %\_directory%

3. get tag values from file name (title, author, album(series name) etc)  
Action: Guess Values  
Source Format: $if($eql($regexp($regexp(%\_filename%,._?( - )._?,$1),(.\* - )._,$1), - - ),$regexp(%\_filename%,(._) - (.\*),$1 - - $2),%\_filename%)Guessing Pattern: %track% - %artist% - %album% - %title%

4. change title to "title - track #"  
Action: Format Value  
Field: TITLE  
Formatstring: %title% - %track%

edit:  
step 3 adjusted according the discussion below

---

_[View the full topic](https://community.mp3tag.de/t/mass-tag-filename-conversion/11663)._
