alias biggestfile {
var %i = 0, %size = 0, %b = $findfile($1-,*,0), %s
while (%b > %i) {
%s = $bytes($file($findfile($1-,*,%b)).size,k3)
if (%s > %size) {
%size = $bytes($file($findfile($1-,*,%b)).size,k3)
dec %b
}
}
return %size
}
What it's *supposed* to do is find the filesize of the largest file in whatever directory. Usage of the identifer is $biggestfile(c:\foldname\here). However, the only times I've tried to use it, it has (apparently) been processing all the loops or something, and I end up having to close mIRC by killing the process. Did I leave out a vital part of the code, or something like that?