Import tags from foldername with "\" - how?

Hi all

The foldername is: ABC - DEF (2026, Joe Roe)

The current filename is Test

Album: ABC

Title: DEF

Interpret: Joe Roe

The documentation mentions to use “\” in order to refer to foldername rather filename.

So when I go to convert Filename - Tag with formatstring:
\%title% - %album% (%year%, %artist%)

Nothing happens, no preview, and no change.

Where is the mistake I make?

In your example screenshot the filename is Test.m4b
The expected filename is DEF - ABC (2020, Joe Roe).m4b
You only see a preview (with fieldnames and the future content), if the selected filename really matches your Format string, and vice versa.

If you want to get the fieldname content from your folder name,
image
the Format string should look like this:
%title% - %album% (%year%, %artist%)\%dummy%

This was the missing part, the “\%dummy%

From the page Import Tags from File and Folder Names, I couldn’t read out that

  1. \ comes at the end and

  2. add %dummy%

Now it works perfectly; thank you so much LL.

You're welcome @music-laura.

The filename itself is usually also part of the conversion Filename -> Tag.
Therefore, the example in the documentation states the following:

For example, the information from the path
Nils Frahm\[2018] All Meldoy\09 - Momentum.mp3
can be imported using
%artist%\[%year%] %album%\%track% - %title%

Using %dummy% indicates "ignore this part".