mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 414
Fjord artisan
OP Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
Add new parameter for sort ..
I mean return by file size(size),creation time(ctime),last modification time(mtime),last access time(atime) ..
//echo 1 $findfile($mircdir,*.*,0,echo $1-, size/ctime/mtime/atime) ..

And for $finddir same .. But without last access time(atime) and modification time(mtime) ..


mIRC Chm Help 6.16.0.3 Full Anchored!
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Why not just use $findfile then sort them yourself?

Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
mIRC had to queue the search results, and then sort 'em... and if some pervert out there wants to know the 385th biggest file on his computer with 20000 diffrent files... that would take a long long long long time smile


Code:
//if ( khaled isgod ) echo yes | else echo no
Joined: Apr 2003
Posts: 414
Fjord artisan
OP Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
You know how ? It must be a realy big script ..


mIRC Chm Help 6.16.0.3 Full Anchored!
Joined: Apr 2003
Posts: 414
Fjord artisan
OP Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
He he smile The sort-function can be only a option ..
A question .. Now mirc show the files randome ? Or is some criterion .. ?


mIRC Chm Help 6.16.0.3 Full Anchored!
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
It gives you the files in the order that Windows returns when mIRC says "give me the list of files"

Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
in other words: in returns them in the order they are on your HD fisically


If it ain't broken, don't fix it!
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Not at all. Files are not contained on the harddrive. Sections of files are. A file that is 200MB doesn't occupy a 200MB continuous piece on your harddrive, it may occupy 400 500KB pieces scattered on the harddrive.

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Unless you just used defragment, codemastr's right >:D


-KingTomato
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Heh speaking of which, I should probably do that one day... you have any idea how fragmented a 6year old 10GB harddrive can become? smile

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
make sure u disconnect your network connection-something that fragile you don't want interrupted. >:D


-KingTomato
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
okay: it returns them in the order the first sections of each file are on the HD ;-]


If it ain't broken, don't fix it!

Link Copied to Clipboard