# How can I rename the folder using the \*album\* tag?

**URL:** https://community.mp3tag.de/t/how-can-i-rename-the-folder-using-the-album-tag/15505
**Category:** General Discussion
**Created:** [February 14, 2014, 1:35pm UTC](https://community.mp3tag.de/t/how-can-i-rename-the-folder-using-the-album-tag/15505 "2014-02-14T13:35:05Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [February 14, 2014, 6:29pm UTC](https://community.mp3tag.de/t/how-can-i-rename-the-folder-using-the-album-tag/15505/6 "2014-02-14T18:29:37Z")

</div>

> [@uk lee](#):
>
> ... _Action type_ Format value  
> _Field:_ \_DIRECTORY  
> _Format string:_ %album%  
> ... This does **exactly** what i wanted to achieve in my first question ...  
> Question- how can i get it to rename the parent folder ...

You would have find a bunch of answers anywhere in the forum.

Use converter "Tag - Tag" or action "Format value".

**Field: \_DIRECTORY**** Formatstring: $validate('.\..\'%ALBUM%'\'%\_directory%,'-')**

... or ...

**Formatstring: $validate(%\_folderpath%'..\..\'%ALBUM%'\'%\_directory%,'-')**

... or ...

**Formatstring: $validate($replace(%\_folderpath%'\*','\'%\_parent\_directory%'\'%\_directory%'\*','\'%ALBUM%'\'%\_directory%'\'),'-')**

The empty old album folder may still exist after the operation.  
But all additionally other folder content have been moved too.

Use converter "Tag - Tag" or action "Format value".

**Field: \_FILENAME**** Formatstring: $validate(%\_folderpath%'..\..\'%ALBUM%'\'%\_directory%'\'%\_filename\_ext%,'-')**

The old folder tree still exists after the operation.  
There have been left all additionally other folder content.

DD.20140214.2035.CET  
DD.20140215.1155.CET  
DD.20140216.1902.CET

---

_[View the full topic](https://community.mp3tag.de/t/how-can-i-rename-the-folder-using-the-album-tag/15505)._
