# Batch change the folder name based on the tags of the files inside it

**URL:** https://community.mp3tag.de/t/batch-change-the-folder-name-based-on-the-tags-of-the-files-inside-it/55079
**Category:** Support
**Created:** [November 10, 2021, 12:29pm UTC](https://community.mp3tag.de/t/batch-change-the-folder-name-based-on-the-tags-of-the-files-inside-it/55079 "2021-11-10T12:29:56Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Palladio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/palladio/32/10154_2.png) [@Palladio](https://community.mp3tag.de/u/Palladio)
#### Post date: [November 10, 2021, 12:29pm UTC](https://community.mp3tag.de/t/batch-change-the-folder-name-based-on-the-tags-of-the-files-inside-it/55079/1 "2021-11-10T12:29:56Z")

</div>

Hello, is there a solution in **Mp3tag** that can change a large number of album folders based on the music tags inside it all at once?  
For example, suppose we want to **rename 200 folders** of music album based on the music tags inside them, that is, all folders include:

Artist - Album Name (year) Quality

**Borislav Slavov - Crysis 3 (2013) 320KB**

How can this be done? Thanks friends for the help 🙏

---

<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: [November 10, 2021, 12:52pm UTC](https://community.mp3tag.de/t/batch-change-the-folder-name-based-on-the-tags-of-the-files-inside-it/55079/2 "2021-11-10T12:52:22Z")

</div>

Perhaps with a look at the

> [@Palladio](#):
>
> How ...

tos?

> [@Converters to rename files or to import tags](https://community.mp3tag.de/t/converters-to-rename-files-or-to-import-tags/8016/2):
>
> How to rename files based on tags? Renaming files, creating folders and complete directory structures from tags can be done by using the [:mt\_ttf:] Converter \> Tag - Filename with a format string. A format string is used to describe the structure of the desired filename. Besides using normal placeholders (such as %artist%, %title%, ...) and arbitrary text (e.g., Music) it also allows for separating folders with the backslash \ character. Here is an example that renames the file based on the t…

> [@Palladio](#):
>
> all folders include:
> 
> Artist - Album Name (year) Quality

If you want to rename folders, then the current names are not really of interest.  
Much more interesting would be to know which tag fields are filled and what the new names should look like.

---

<div class="post-metadata">

### Author: ![Palladio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/palladio/32/10154_2.png) [@Palladio](https://community.mp3tag.de/u/Palladio)
#### Post date: [November 10, 2021, 6:01pm UTC](https://community.mp3tag.de/t/batch-change-the-folder-name-based-on-the-tags-of-the-files-inside-it/55079/3 "2021-11-10T18:01:23Z")

</div>

I did not understand what solution you suggested?

---

<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: [November 10, 2021, 6:07pm UTC](https://community.mp3tag.de/t/batch-change-the-folder-name-based-on-the-tags-of-the-files-inside-it/55079/4 "2021-11-10T18:07:50Z")

</div>

Provided, you have filled the tag fields, use an action of the type "Format value" for \_DIRECTORY.  
Enter as format string all the variables and text constants that you want to see in the folder name.  
Do not add any parts that describe the filename.  
To avoid any problems with relative path descriptions, enter an absolute path, including the drive letter and all superior folder names.

This renames folders. It does not create new ones. All files that are in a particular folder also get moved to the new location.

If you do not really know what to enter for the format string, please tell us the path to your music collection and then which further name components you want to see, e.g.  
Format string: `d:\mymusic\artists & groups\%albumartist%\%year% - %album%`

---

<div class="post-metadata">

### Author: ![Palladio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/palladio/32/10154_2.png) [@Palladio](https://community.mp3tag.de/u/Palladio)
#### Post date: [November 10, 2021, 7:57pm UTC](https://community.mp3tag.de/t/batch-change-the-folder-name-based-on-the-tags-of-the-files-inside-it/55079/5 "2021-11-10T19:57:09Z")

</div>

I have not worked with the actions section, I do not know how to use or define actions. Thank you for your explanation in detail.  
The address of the desired folder is as follows:

**F: \ Assassin's**

Inside this folder are four albums that I want to rename the folders

---

<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: [November 10, 2021, 8:00pm UTC](https://community.mp3tag.de/t/batch-change-the-folder-name-based-on-the-tags-of-the-files-inside-it/55079/6 "2021-11-10T20:00:27Z")

</div>

> [@Palladio](#):
>
> I have not worked with the actions

You could also use Converter\>Tag-Tag. You probably have to type in \_DIRECTORY.  
The rest works as described.  
So probably it is this  
Format string: `F: \ Assassin's\%albumartist%\%year% - %album%`

---

<div class="post-metadata">

### Author: ![Palladio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/palladio/32/10154_2.png) [@Palladio](https://community.mp3tag.de/u/Palladio)
#### Post date: [November 10, 2021, 9:30pm UTC](https://community.mp3tag.de/t/batch-change-the-folder-name-based-on-the-tags-of-the-files-inside-it/55079/7 "2021-11-10T21:30:22Z")

</div>

Thank you dear friend, is there any other way besides this method?  
How can this be done through action ??

---

<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: [November 10, 2021, 9:34pm UTC](https://community.mp3tag.de/t/batch-change-the-folder-name-based-on-the-tags-of-the-files-inside-it/55079/8 "2021-11-10T21:34:21Z")

</div>

> [@ohrenkino](#):
>
> use an action of the type "Format value" for \_DIRECTORY

Further sources of information are ...

- the [help](https://docs.mp3tag.de/actions)
- the [FAQs and HowTos](https://community.mp3tag.de/t/actions-and-batch-operations/967/2)

---

<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: [December 10, 2021, 9:35pm UTC](https://community.mp3tag.de/t/batch-change-the-folder-name-based-on-the-tags-of-the-files-inside-it/55079/9 "2021-12-10T21:35:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
