If your merely looping files, you might find $findfile() useful and fast., for example;

//echo -> $findfile($mircdir,*,0,echo -s -> $1- $crc($1-)) takes but a few seconds to loop the entire mIRC directory (here, its 500 files).

Eamonn.