mIRC Homepage
Posted By: Adrenalin $findfile & $finddir - addition - 09/06/03 05:56 PM
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) ..
Posted By: codemastr Re: $findfile & $finddir - addition - 09/06/03 05:59 PM
Why not just use $findfile then sort them yourself?
Posted By: theRat Re: $findfile & $finddir - addition - 09/06/03 06:02 PM
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
Posted By: Adrenalin Re: $findfile & $finddir - addition - 09/06/03 06:07 PM
You know how ? It must be a realy big script ..
Posted By: Adrenalin Re: $findfile & $finddir - addition - 09/06/03 06:15 PM
He he smile The sort-function can be only a option ..
A question .. Now mirc show the files randome ? Or is some criterion .. ?
Posted By: codemastr Re: $findfile & $finddir - addition - 09/06/03 06:35 PM
It gives you the files in the order that Windows returns when mIRC says "give me the list of files"
Posted By: Doqnach Re: $findfile & $finddir - addition - 10/06/03 04:31 PM
in other words: in returns them in the order they are on your HD fisically
Posted By: codemastr Re: $findfile & $finddir - addition - 10/06/03 05:31 PM
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.
Posted By: KingTomato Re: $findfile & $finddir - addition - 10/06/03 06:17 PM
Unless you just used defragment, codemastr's right >:D
Posted By: codemastr Re: $findfile & $finddir - addition - 10/06/03 07:27 PM
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
Posted By: KingTomato Re: $findfile & $finddir - addition - 10/06/03 07:31 PM
make sure u disconnect your network connection-something that fragile you don't want interrupted. >:D
Posted By: Doqnach Re: $findfile & $finddir - addition - 11/06/03 04:18 PM
okay: it returns them in the order the first sections of each file are on the HD ;-]
© mIRC Discussion Forums