# Changing tag and file directory based of filename with just actions

**URL:** <https://community.mp3tag.de/t/changing-tag-and-file-directory-based-of-filename-with-just-actions/17720>\
**Category:** Support\
**Created:** [March 5, 2016, 4:57pm UTC](https://community.mp3tag.de/t/changing-tag-and-file-directory-based-of-filename-with-just-actions/17720 "2016-03-05T16:57:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Finu96](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/34f0e0/32.png) [@Finu96](https://community.mp3tag.de/u/Finu96)\
**Post date:** [March 5, 2016, 4:57pm UTC](https://community.mp3tag.de/t/changing-tag-and-file-directory-based-of-filename-with-just-actions/17720/1 "2016-03-05T16:57:59Z")

</div>

Hi! I'm new here..so please don't rage due to my lack of knowledge

The filenames of the files i want to edit are like this:  
DisturBed\_-_The\_light_[Official\_Music\_Video]

I would like to change it to:

Filename:  
Disturbed - The Light

Artist:  
Disturbed

Albumartist:  
Disturbed

Title:  
The Light

Directory:  
C:\Users\Finu\Videos\New Music Videos\%artist% - %title%

So the steps i want to take are:  
In the Filename Replace "\_" with " "  
In the Filename Change to mixed case  
In the Filename Remove " ( blah blah)"  
In the Filename Remove " [blah blah]"

```
                 remove everything inside () or [], the smybols ()[] and the space before ( or [

```

Pick the info and tag the fields based on the filename: %albumartist% - %title%  
Make %albumartist% = %artist%  
Move the files to C:\Users\Finu\Videos\New Music Videos\%artist% - %title%

Please help me with what your know! Doesn't matter if you only know one of the tasks, just post it!! 🙂 really need some help o this

---

<div class="post-metadata">

**Author:** ![Rijkstra](https://community.mp3tag.de/user_avatar/community.mp3tag.de/rijkstra/32/22_2.png) [@Rijkstra](https://community.mp3tag.de/u/Rijkstra)\
**Post date:** [March 5, 2016, 5:54pm UTC](https://community.mp3tag.de/t/changing-tag-and-file-directory-based-of-filename-with-just-actions/17720/2 "2016-03-05T17:54:06Z")

</div>

> [@Finu](#):
>
> ...  
> I would like to change it to:
> 
> Filename:  
> Disturbed - The Light
> 
> Artist:  
> Disturbed
> 
> Albumartist:  
> Disturbed
> 
> Title:  
> The Light
> 
> Directory:  
> C:\Users\Finu\Videos\New Music Videos\%artist% - %title%  
> ...

I won't help you with the tasks yet, just to define what you want.

Do you really want both ARTIST and ALBUMARTIST if they are the same? It depends on how the display in your player is set up. I have to avoid the situation, but you may not have to.

Do you really want a separate directory for each track? Or is that just the full path of the file without the extension?

---

<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:** [March 5, 2016, 7:14pm UTC](https://community.mp3tag.de/t/changing-tag-and-file-directory-based-of-filename-with-just-actions/17720/3 "2016-03-05T19:14:27Z")

</div>

> [@Finu](#):
>
> ...The filenames of the files i want to edit are like this:  
> DisturBed\_-_The\_light_[Official\_Music\_Video]  
> ...C:\Users\Finu\Videos\New Music Videos\%artist% - %title%
> 
> So the steps i want to take are:  
> In the Filename Replace "\_" with " "  
> In the Filename Change to mixed case  
> In the Filename Remove " ( blah blah)"  
> In the Filename Remove " [blah blah]"
> 
> ```
> remove everything inside () or [], the smybols ()[] and the space before ( or [
> 
> ```
> 
> Pick the info and tag the fields based on the filename: %albumartist% - %title%  
> Make %albumartist% = %artist%  
> Move the files to C:\Users\Finu\Videos\New Music Videos\%artist% - %title%  
> ...

Get data from filenames:  
Action of the type "Guess values" for %_filename%  
Guessing pattern: %artist%_-\_%title%

2 actions of the type "Replace", one for ARTIST, one for TITLE:  
Search string: \_  
Replace string:  
(a space character)

an action to remove the stuff in [:  
Replace with regular expression for TITLE  
Search string: [._$  
Replace string:  
(leave empty)  
a similar action for (:  
Search string: (._$

Change case for ARTIST:  
Format value for ARTIST  
Format string $caps(%artist%)

Copy ARTIST TO ALBUMARTIST  
Action of the type "Format value" for ALBUMARTIST  
Format string: %artist%

Move the files to C:\Users\Finu\Videos\New Music Videos\%artist% - %title%  
Format value for \_FILENAME  
Format string: C:\Users\Finu\Videos\New Music Videos\%artist% - %title%  
(this changes the filename and moves the file to the new location in one go)

---

<div class="post-metadata">

**Author:** ![Finu96](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/34f0e0/32.png) [@Finu96](https://community.mp3tag.de/u/Finu96)\
**Post date:** [March 7, 2016, 9:03am UTC](https://community.mp3tag.de/t/changing-tag-and-file-directory-based-of-filename-with-just-actions/17720/4 "2016-03-07T09:03:27Z")

</div>

> [@Rijkstra](#):
>
> I won't help you with the tasks yet, just to define what you want.
> 
> Do you really want both ARTIST and ALBUMARTIST if they are the same? It depends on how the display in your player is set up. I have to avoid the situation, but you may not have to.
> 
> Do you really want a separate directory for each track? Or is that just the full path of the file without the extension?

Yep! Need it just for the music videos xD.  
It is the full patch 🙂 Thanks!

---

<div class="post-metadata">

**Author:** ![Finu96](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/34f0e0/32.png) [@Finu96](https://community.mp3tag.de/u/Finu96)\
**Post date:** [March 7, 2016, 9:32am UTC](https://community.mp3tag.de/t/changing-tag-and-file-directory-based-of-filename-with-just-actions/17720/5 "2016-03-07T09:32:28Z")

</div>

> [@ohrenkino](#):
>
> Get data from filenames:  
> Action of the type "Guess values" for %_filename%  
> Guessing pattern: %artist%_-\_%title%
> 
> 2 actions of the type "Replace", one for ARTIST, one for TITLE:  
> Search string: \_  
> Replace string:  
> (a space character)
> 
> an action to remove the stuff in [:  
> Replace with regular expression for TITLE  
> Search string: [._$  
> Replace string:  
> (leave empty)  
> a similar action for (:  
> Search string: (._$
> 
> Change case for ARTIST:  
> Format value for ARTIST  
> Format string $caps(%artist%)
> 
> Copy ARTIST TO ALBUMARTIST  
> Action of the type "Format value" for ALBUMARTIST  
> Format string: %artist%
> 
> Move the files to C:\Users\Finu\Videos\New Music Videos\%artist% - %title%  
> Format value for \_FILENAME  
> Format string: C:\Users\Finu\Videos\New Music Videos\%artist% - %title%  
> (this changes the filename and moves the file to the new location in one go)

Thank you so much for your help!

---

<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:26pm UTC](https://community.mp3tag.de/t/changing-tag-and-file-directory-based-of-filename-with-just-actions/17720/6 "2026-02-09T12:26:07Z")

</div>

Closed on February 9, 2026, 12:26pm UTC


