# Filename - Tag. Specify order when using different path parts

**URL:** <https://community.mp3tag.de/t/filename-tag-specify-order-when-using-different-path-parts/42980>\
**Category:** Support\
**Created:** [September 16, 2018, 11:32am UTC](https://community.mp3tag.de/t/filename-tag-specify-order-when-using-different-path-parts/42980 "2018-09-16T11:32:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syborg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/b487fb/32.png) [@Syborg](https://community.mp3tag.de/u/Syborg)\
**Post date:** [September 16, 2018, 11:32am UTC](https://community.mp3tag.de/t/filename-tag-specify-order-when-using-different-path-parts/42980/1 "2018-09-16T11:32:00Z")

</div>

Hi,

I'm a long time mp3tag user trying to get the ALBUM tag from the path using Finename to Tag menu option.

Having this path+file:

`M:\C\1\(1685-1750) Johann Sebastian Bach\Cantatas\[Suzuki]\BWV 0006-Bleib bei uns, denn es will Abend werden\05-Vol.36-BWV6 Aria Tenore Jesu la uns auf dich sehen.flac`

Using string `\%artist%\%dummy%\%dummy%\%album%\%track%-%title%` --- I get --\> BWV 0006-Bleib bei uns, denn es will Abend werden

Using string `\%artist%\%dummy%\%album%\%album%\%track%-%title%` --- I get --\> [Suzuki] BWV 0006-Bleib bei uns, denn es will Abend werden

Is there any way to get this one ---\> BWV 0006-Bleib bei uns, denn es will Abend werden [Suzuki]

In other words, is it possible an _easy_ way to specify the order when I use different parts of the path to get a tag value?

If not, I would appreciate if somebody can suggest a similar script I can modify\try ... on any other idea.

Thanks a lot in advance!!

---

<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:** [September 16, 2018, 1:54pm UTC](https://community.mp3tag.de/t/filename-tag-specify-order-when-using-different-path-parts/42980/2 "2018-09-16T13:54:57Z")

</div>

I think it is easiest to first extract the scattered information into a user-defined field (with the function Convert\>Filename\>Tag and perhaps a format string like  
`%album%\%title% '['%my_album%']' - %track%`)  
and then either use Convert-Tag-Tag or an action of the type "Format tag field" to merge %album% and %my\_album% to ALBUM.

---

<div class="post-metadata">

**Author:** ![Syborg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/b487fb/32.png) [@Syborg](https://community.mp3tag.de/u/Syborg)\
**Post date:** [September 16, 2018, 4:49pm UTC](https://community.mp3tag.de/t/filename-tag-specify-order-when-using-different-path-parts/42980/3 "2018-09-16T16:49:55Z")

</div>

Thanks a lot ohrenkino!!

Finaly I found a good and easy 2 step solution:

1. Make a Convert \> Filename - Tag using string: %album%%album%%dummy%

2. Make a Convert \> Tag - Tag to ALBUM field using the following expression: $mid(%album%,$add(2,$strstr(%album%,'] ')),1000) $Left(%album%,$strstr(%album%,'] ')) (That's the idea you give me) 🙂

---

<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:27pm UTC](https://community.mp3tag.de/t/filename-tag-specify-order-when-using-different-path-parts/42980/4 "2026-02-09T12:27:40Z")

</div>


