Code:
alias que {
if ($hget(Files)) hfree Files
  var %dir = $$sdir($mircdir,Select Dir) ,%time = $ticks
  echo Please Wait Adding Files To Que
  noop $findfile(%dir,*.*,0, if ($right($1-,4) !== .NEW) hadd -m Files $findfilen $1-)
  echo Added $hget(Files,0).item Files To Que In $calc($ticks - %time) ms
}


$findfile already have a fonction to do a command on each files found, instead of using a loop that slow down the process.This will be faster but you can't avoid the freeze and the fact that it will take time with 10000 files...

Edit : Beaten smile

Last edited by Wims; 11/03/09 05:49 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel