i found that %x = doesn't work in $findfile(), i had to use var %x =

%x = gives: * /echo: insufficient parameters

newer code:
Code:
alias folder {
  var %x
  if $prop == size { .echo -q $findfile($1,*.*,0,inc %x $file($1-)) }
  elseif $prop == files { .echo -q $findfile($1,*.*,0,var %x = %x $nopath($1-) $+ $chr(44)) }
  elseif $prop == filecount { %x = $findfile($1,*.*,0) }
  elseif $prop == folders { .echo -q $finddir($1,*,0,var %x = %x $gettok($1-,-1,$asc(\)) $+ $chr(44)) }
  elseif $prop == foldercount { %x = $finddir($1,*,0) }
  elseif !$prop || $prop == isdir { %x = $isdir($1) }
  if $right(%x,1) == $chr(44) { %x = $left(%x,-1) }
  return %x
}


New username: hixxy