mIRC Home    About    Download    Register    News    Help

Print Thread
#197571 09/04/08 01:25 PM
Joined: Feb 2006
Posts: 97
O
Babel fish
OP Offline
Babel fish
O
Joined: Feb 2006
Posts: 97
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?

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Code:
set %loc $qt($sdir(c:\,Select location) $+ Sample)
mkdir %loc


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Feb 2006
Posts: 97
O
Babel fish
OP Offline
Babel fish
O
Joined: Feb 2006
Posts: 97
Originally Posted By: starbucks_mafia
Code:
set %loc $qt($sdir(c:\,Select location) $+ Sample)
mkdir %loc
Thanks
works perfect


Link Copied to Clipboard