Code:
alias getfile {
  var %x = 1
  while (%x <= $hfind(file, $+(*.,$$1), %x, w).data) {
    echo -a $hget(file,$v2)
    inc %x
  }
  echo -a Total amount of $1 files: $hfind(file, $+(*.,$$1), 0, w).data
}


/getfile dll