mIRC Homepage
Posted By: ots654685 Problem setting variable - 09/04/08 01:25 PM
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?
Posted By: starbucks_mafia Re: Problem setting variable - 09/04/08 01:53 PM
Code:
set %loc $qt($sdir(c:\,Select location) $+ Sample)
mkdir %loc
Posted By: ots654685 Re: Problem setting variable - 09/04/08 02:30 PM
Originally Posted By: starbucks_mafia
Code:
set %loc $qt($sdir(c:\,Select location) $+ Sample)
mkdir %loc
Thanks
works perfect
© mIRC Discussion Forums