mIRC Home    About    Download    Register    News    Help

Topic Options
#28871 - 09/06/03 06:56 PM $findfile & $finddir - addition
Adrenalin Offline
Fjord artisan

Registered: 18/04/03
Posts: 414
Loc: Moldova
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!

Top
#28872 - 09/06/03 06:59 PM Re: $findfile & $finddir - addition
codemastr Offline
Hoopy frood

Registered: 12/12/02
Posts: 2809
Why not just use $findfile then sort them yourself?

Top
#28873 - 09/06/03 07:02 PM Re: $findfile & $finddir - addition
theRat Offline
Hoopy frood

Registered: 11/12/02
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

Top
#28874 - 09/06/03 07:07 PM Re: $findfile & $finddir - addition
Adrenalin Offline
Fjord artisan

Registered: 18/04/03
Posts: 414
Loc: Moldova
You know how ? It must be a realy big script ..
_________________________
mIRC Chm Help 6.16.0.3 Full Anchored!

Top
#28875 - 09/06/03 07:15 PM Re: $findfile & $finddir - addition
Adrenalin Offline
Fjord artisan

Registered: 18/04/03
Posts: 414
Loc: Moldova
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!

Top
#28876 - 09/06/03 07:35 PM Re: $findfile & $finddir - addition
codemastr Offline
Hoopy frood

Registered: 12/12/02
Posts: 2809
It gives you the files in the order that Windows returns when mIRC says "give me the list of files"

Top
#28877 - 10/06/03 05:31 PM Re: $findfile & $finddir - addition
Doqnach Offline
Hoopy frood

Registered: 18/01/03
Posts: 1063
in other words: in returns them in the order they are on your HD fisically
_________________________
If it ain't broken, don't fix it!

Top
#28878 - 10/06/03 06:31 PM Re: $findfile & $finddir - addition
codemastr Offline
Hoopy frood

Registered: 12/12/02
Posts: 2809
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.

Top
#28879 - 10/06/03 07:17 PM Re: $findfile & $finddir - addition
KingTomato Offline
Planetary brain

Registered: 04/01/03
Posts: 3012
Loc: New Hampshire, USA
Unless you just used defragment, codemastr's right >:D
_________________________
-KingTomato

Top
#28880 - 10/06/03 08:27 PM Re: $findfile & $finddir - addition
codemastr Offline
Hoopy frood

Registered: 12/12/02
Posts: 2809
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

Top
#28881 - 10/06/03 08:31 PM Re: $findfile & $finddir - addition
KingTomato Offline
Planetary brain

Registered: 04/01/03
Posts: 3012
Loc: New Hampshire, USA
make sure u disconnect your network connection-something that fragile you don't want interrupted. >:D
_________________________
-KingTomato

Top
#28882 - 11/06/03 05:18 PM Re: $findfile & $finddir - addition
Doqnach Offline
Hoopy frood

Registered: 18/01/03
Posts: 1063
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!

Top