mIRC Home    About    Download    Register    News    Help

Print Thread
#22951 07/05/03 10:02 AM
Joined: Dec 2002
Posts: 94
K
krunch Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Dec 2002
Posts: 94
is there a faster way to find a file other then $findfile()??


Lets get dirty
#22952 07/05/03 10:10 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
there is no other identifier.
but there is a DEPTH option in the findfile which search the files in the number of subdirs that u spcify u can do:
$findfile(DIR,FILE,N,1)
to search in only on that dir without subdirs.

#22953 07/05/03 10:13 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
this is findfile but this is what i use for example to list all my mp3s to the channel:

on flame:TEXT:`listmp3:#:{
$findfile($mircdir,*.mp3,0,msg # $nopath($1-))
}


new username: tidy_trax
#22954 07/05/03 10:23 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
this is the same $findfile he's talking about
anyway if u want to get the Nth filename ONLY in that dir (without subdirs) use 1 in the depth part of the identifier

#22955 07/05/03 02:45 PM
Joined: Mar 2003
Posts: 4
R
Self-satisified door
Offline
Self-satisified door
R
Joined: Mar 2003
Posts: 4
there is a FindFile DLL @ mircscripts.org

#22956 07/05/03 05:24 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
ya but it won't do sub directories .. once it does it will be great ... right now it's just OK

Edit: Also, it seems to skip the first file.

Edit 2: I'm sorry, I didn't mean to sound like I'm trashing the DLL, I actually am using it with $finddir() for sub directories.

Last edited by RoCk; 07/05/03 06:21 PM.

Link Copied to Clipboard