mIRC Home    About    Download    Register    News    Help

Print Thread
#267295 12/05/20 10:52 AM
Joined: Dec 2019
Posts: 45
Q
quartz Offline OP
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Dec 2019
Posts: 45
I've tried combinations of [ ]

/set %dirget f:\dir\folder\sub\MAIN

(this directory has 5 sub folders)


//echo -s total $dir_t(%dirget,1)

alias dir_t {
set %dir_t $+ $gettok($1,1-5,92) $+ $count($1,\) $finddir($1,*,0,1)
echo -s return %dir_t $+ $gettok($1,1-5,92) $+ $count($1,\)
}

the /set line, gives me

%dir_tf:\dir\folder\sub\MAIN4 5

which is fine

the /echo line, gives me

return f:\dir\enc\sites\ACLS4

which isn't right, I want it to return "5" -- it's forgetting the %dir_t part

appreciated's

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code
echo -s $eval($+(%,dir_t,$gettok($1,1-5,92),$count($1,\)),2)

hixxy #267301 12/05/20 05:35 PM
Joined: Dec 2019
Posts: 45
Q
quartz Offline OP
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Dec 2019
Posts: 45
mint, gracias.


Link Copied to Clipboard