using var to trigger the $findfile will speed up slightly around a 100ms or so. That combined with the unnecessary identifiers as mentioned by hixxy will save you around a 1000ms! there was no need for the font command so i removed it.

Code:
alias mp32 {
  var %t = $ticks
  if ($window(@MP3)) { clear -@ @MP3 }
  if (!$window(@MP3)) { window -hEnsk0 @MP3 Times New Roman 11 }
  var %x = $findfile(D:\Mp3\,*.mp3,0,aline @MP3 $nopath($1-))
  echo -a this took $calc($ticks - %t) miliseconds for %x files
  window -r @mp3
}


this took 40 ms on 112 files

Kelder i dont know i go about this correctly but using fopen was actually slower as the original code smirk
Code:
alias mp32 {
  fopen -o list list.txt
  var %t = $ticks
  if ($window(@MP3)) { clear -@ @MP3 }
  if (!$window(@MP3)) { window -Ensk0 @MP3 Times New Roman 11 }
  var %x = $findfile(D:\Mp3\,*.mp3,0,.fwrite -n list $nopath($1-))
  fclose list | loadbuf @mp3 list.txt
  echo -a this took $calc($ticks - %t) miliseconds for %x files
}

that took 1823 ms on 112 files

Last edited by Mpdreamz; 08/10/05 01:52 PM.

$maybe