Rename tags from filename

Please help, write a rename line, there is the following file structure

............|2013 - The Theory of Everything (Limited Edition)
...........................................................................................|CD1 - Phase I׃ Singularity ⁄ Phase II׃ Symmetry

I want using folder names rename tags in tracks

Artist: Ayreon
Year: 2013
Album: The Theory of Everything (Limited Edition) (Phase I׃ Singularity ⁄ Phase II׃ Symmetry)
DiskNumber: 01

Explanations - the name of the subfolder should be included in the name of the album in brackets, with the exception of "CD1 - "

"CD1 - " should be in the drive number, except "CD1" and " - "

clear task?


and second option

Artist: Ayreon
Year: 2013
Album: The Theory of Everything (Limited Edition) (CD1 - Phase I׃ Singularity ⁄ Phase II׃ Symmetry)

that is, just add the name of the subfolder to the album name and put it in brackets

option %artist%%year% - %album%'('%album%')'%dummy% does not work

when you remove the brackets it adds

There is a "howTo" in the FAQs that describes how to import data from the folder structure:

could be imported with
Format string: %artist%\%year% - %album%\CD%discnumber% - %myalbum%
If you want to have a special format in a field that you have to modify that field after you have imported the data.
If the data is split across the full filename, use a helper field like %myalbum% and merge it after import with an action of the type "Format value" or Convert>Tag-Tag for the target field ALBUM with the
Format string: %album% (%myalbum%)

thanks for the help CD%discnumber% it works

I can not put in brackets

%artist%%year% - %album%\CD%discnumber% - '('%album%')'%dummy%

shielding apostrophes don't help

You cannot use a string constant for 2 purposes:

  • the separator
  • part of a tag field


may work so that you miss out only the closing bracket.
You can add that with a second step e.g. Convert>Tag-Tag for ALBUM
Format string: %album%)

I figured there was a one-way way to change tags (((

I just re-read the whole thread and I think that only the way with the user-defined field %myalbum% will lead to success.
It will still be 2 steps, though.
With the convert function you tell MP3tag how to separate an amorphous string into fields.
It is not possible to add or modify the result with the same function.

did according to yours, it turned out)))

where can I replace the forbidden characters:? / to unicode when renaming a file

$num(%track%,2). %title%

there is a colon in the tags, I want to replace it with unicode

I am read do not understand

how Prologue: the Blackboard replace on Prologue׃ the Blackboard

second colons is unicode

where to insert the code $replace(,:,׃)

How to replace in a renamed track??

the colon is an invalid character for filenames as it is used for the drive letter

yes, of course I’m in the know, so I use a replacement for a visually similar Unicode character that can be inserted into the file name

׃ - it is not a colon, it is a character, you can use it in the name. I want to replace the colon with this character.

Also with a slash / on ⁄

the answer is here, but not enough knowledge file:///C:/Portable%20App/Mp3tag/help/main_scripting.html

If you know the character code, then use $char() instead of the visible character, e.g.
(which replaces the hyphen with a space character)

in my opinion I am close to the answer, code symbol... 05C3


what should the string look like $num(%track%,2). %title%

combine both strings:
$num(%track%,2). $replace(%title%,:,$char(05C3))

and if there are several character substitutions, how should they be listed?

Follow this syntax:
$replace(%field% or string,search1,replace1,search2,replace2,...)

syntux is understandable instead %title% %field%

not a single code works, I tried several and the result is one - instead of a symbol in the name, a square

which means that the file system does not support UTF-16 characters....
(it would be nice to see what you tried with the actual text - like that it is easier to reproduce or see a possible error)


here are their codes



AC/DC >>> AC ⁄ DC

You have to recalculate them to decimal value:
2044 = $char(8260)
5c03 = $char(1475)

its WORKS!!! and how offtopic how do you recalculate to decimal value? What kind of internet service?

no internet required.
You can use the Windows calculator in the mode for programmers.
It usually starts in the mode "normal".