How to rename my folder

Hello, how to rename(reappoint) my file following the code: %artist% ~ %album%, but if the name of the album is empty I want that my file is renamed only like that: %artist%

To rename a folder (not file)
you can apply an action of the type "Format tag field" for _DIRECTORY
Format string: %artist%[ ~ %album%]

The square brackets enclose an optional part that is only used if the referenced field is filled with data.

Use the converter Tag - Filename and the format string

$if(%album%,%artist% ~ %album%,%artist%)

But I can't see any sense in naming mp3-files only by "artist - album" or even worse by only "artist".
There will be a lot of duplicate filenames.
You better think it over.

Actually, if you use the converter it is not necessary to use the rather complicated $if statement - instead, simply add square brackets:
%artist%[ ~ %album%]
I agree on the statement on the sensibility of renaming files to just the artist name. Should also not work for folders with albums...

Thank you for your answers but if the folder is renamed it moves me and I get two files with different names. I would like it to me renome but are not used in a double. What to do?

The converter is for the filename. Renaming just a single file does not affect the folder. In fact, the folder may remain where it was, but empty if you specify a filename with path-parts in it (using the backslash ).
If you want to rename a folder, use the Convert>Tag-Tag function for _directory.
Enter as string the new path.
The current folder will be renamed and take all the files that were in that folder to the new location.

Super thank you.

How can this by done by just renaming the album folder, the current method affects Artwork folders.

How is your folder-structure and what is your "current method"?


  • Album folder not always named %album% tag of contained tracks- which is the goal to rename it as such

**Single disc albums will be AlbumFolder/tracks

All tracks inside and album folder has the same %album% tag- so i just needs to grab it from one file.

Without renaming, the closest I can do is create a new album folder inside the original- which is not what I want.

Try an action of the type "Format value" for _DIRECTORY
Format string: F:\Music\%artist%\%album%
This renames the current folder to the pattern provided by the tag fields.
It does not create new folders - so the number of source folders has to be equal to or greater than the number of target folders.