mIRC Home    About    Download    Register    News    Help

Print Thread
#119437 05/05/05 03:34 PM
Joined: Apr 2005
Posts: 53
A
aDevil Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Apr 2005
Posts: 53
Maybe exists a way to list the tree list on my c:\ drive? smile

Last edited by aDevil; 05/05/05 03:34 PM.
#119438 05/05/05 04:17 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
There is no known mIRC command to list a tree diagram of your C drive. You can however get the number of folders in your C drive with $finddir(C:\,*,0).

-Andy

#119439 05/05/05 04:21 PM
Joined: Apr 2005
Posts: 53
A
aDevil Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Apr 2005
Posts: 53
Thanks, a bit slow if you write there 0, but with this identifier I got an other way, and now I can write, thanks a lot smile

#119440 05/05/05 04:24 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
0 returns all the folders and sub folders with in C drive. 1 returns the first folder in C drive etc.. smile

#119441 05/05/05 04:31 PM
Joined: Apr 2005
Posts: 53
A
aDevil Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Apr 2005
Posts: 53
Yes I got this idea, so i list until my variable is $null because if I ask the number of folders the mIRC is delaying a while smile)

#119442 05/05/05 04:37 PM
Joined: Apr 2005
Posts: 53
A
aDevil Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Apr 2005
Posts: 53
alias tree {
tokenize 32 tree
.
.
.
.

and when I type tree c, then the $2 don't give back the c, $2 give nothing.
What is the problem?

#119443 05/05/05 07:27 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Just do something like..

Code:
alias tree {
if ($1) {
  commands
 }
}


$2 will be $null, $1 will be the drive parameter.

-Andy

#119444 05/05/05 08:12 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
$sdir(c:\)

#119445 06/05/05 12:30 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Heh yea, what on earth were they thinking smirk


Gone.

Link Copied to Clipboard