Get current foldername in variable?

Hello,

The FAQ and help file didn't make my any wised how I can get the current foldername in a variable.

Say, I'm in :
[b]C:\ProgramFiles\MyProgram\Data[/b]

I want to get Data into a variable.

I've tried using {f|....} but that always insert the path from the beginning, while I only want the current foldername (minus ALL the parent of the path.

Thanks again for any help.

Wim.

The control code {sourcepath|nopath} should return Data.

Ooops, sorry, I forgot to remove the trailing \ .
Try {sourcepath|nopath|noterm} .

Ah thanks !

I was just writing a response why it returned [b]Data[/b] , Thanks for the quick help ! :astonished: