@set Foldername = (what is the variable for the parent folder?)

So how do I set Foldername to be the name of the parent folder instead of file|noext?
Any other variable I try (folder, foldername, source) gets interpreted as a string, curly braces and all...

@nofilenamequoting
@set Foldername = {file|noext}
Copy MOVE HERE CREATEFOLDER="{$Foldername}"
@NODESELECT
{filepath|..|noterm|nopath}

Thanks sir!