Disc Number

I am currently tagging my Karaoke Collection and I was wondering if anybody can help me with some scripting.
I want to use the "SC1021" from the directory "Sound Choice Karaoke SC1021" as disc number.
Is this possible?

Define an action.

Action-Type: Format value
Format String: $right(%_directory%,6)

BTW, DISCNUMBER is an official tag (TPOS) and it is defined as numeric.

You could use the Convert>Filename-Tag function.
If the separator is "Karaoke" try:
%dummy% Karaoke %discnumber%\%dummy%

Or are there other patterns?

Thank you to "Poster" for the right scripting.
I am a very happy man now.

Regards Carstencoach