Display current folder name in button's label

What is the evaluator code to have current folder name ?

source - i.e. @label:=source

I need only folder name, not the full path

FilePart(source)

1 Like

Sorry but... I try to have the format dialog title in label button.
But look if folder is 'vitual'...


2024-06-17_211305

Not sure if there is a way to do it with those folders that don't have a real path.

Depending on how you have the window title configured, you might be able to use lister_title to get the current folder name/path and split out the bit you want.

Thanks for this... I'll try...

Try DisplayName(source,"f").

2 Likes