I wanted to create a folder but at the same time i need it to be a variable for later use but i think it can be done more simple
Code:
if ($input(Create dir?,yq) == $true) {
      /mkdir $sdir(c:\,Select location) $+ Sample
      set %loc $sdir $+ Sample\
      echo -a %loc
    }

I added that echo to see what %loc would be but above method didn't work.
Also tried
Code:
set %loc { /mkdir $sdir(c:\,Select location) $+ Sample }

But then %loc would be
Quote:
/make E:\Sample

Isn't there a scripting trick to make it work?