mIRC Home    About    Download    Register    News    Help

Print Thread
#113438 05/03/05 12:28 AM
Joined: Jan 2005
Posts: 41
S
swgiant Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 41
Code:
 
test {
  var %b = $sdir($left($mircdir,2), Please Select A Directory...) 
  if (!$isdir(%b)) { halt }
  .window -c @allfiles | .window -hl @allfiles | .window -c @filesctime | .window -lh @filesctime | .window -c @sorted | .window -l @sorted | var %q = $findfile(%b,*,0,@allfiles) 
  var %o = 1 | while (%o <= $line(@allfiles,0)) { aline @filesctime $file($shortfn($line(@allfiles,%o))).ctime | inc %o }
  filter -wwa @filesctime @sorted | .window -c @allfiles | .window -c @filesctime
}
 


i select c:\progra~1\common files\ as a directory, but iam not happy with the results of /filter sorting. how to make it sorts by according the length? i wants is to sort the numeric from the less to the most... Thanks ya...

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Something like this?
Code:
alias test2 {
  var %b = $$sdir(\, Please Select A Directory...) 
  window -c @sorted | window -l @sorted
  .echo -q $findfile(%b,*,0,aline @sorted $file($1-).ctime) 
  filter -wwcut 1 32 @sorted @sorted
}

Joined: Jan 2005
Posts: 41
S
swgiant Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 41
yup... grin u have done a good job... thanks buddy...


Link Copied to Clipboard