This should be a LOT quicker...
Code:
alias loadfiles {
  if $hget(@files) { hfree @files }
  close -@ @files
  window -hl @files
  noop $findfile(C:\,*,0,@files)
  savebuf @files @files.txt
  close -@ @files
  hmake @files 10000
  hload -n @files @files.txt
  .remove @files.txt
}


Originally Posted By: swgiant
Your codes works what i want, but then how to search through the hash table? let said i want to know how many dll files in my hash table, then how to implement the codes?

Code:
alias getfile {
  ; $getfile(filespec,N)
  if $2 == 0 { return $hfind(@files,$+(*,$1,*),0,w).data }
  elseif $2 isnum && $hfind(@files,$+(*,$1,*),$2,w).data { return $hget(@files,$v1) }
}

//echo -a $getfile(.dll,0)
//echo -a $getfile(.dll,1245)