<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=752422400-22092005><FONT face=Arial color=#0000ff size=2>Not
sure this will be faster or easier:</FONT></SPAN></DIV>
<DIV><SPAN class=752422400-22092005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=752422400-22092005><FONT face=Arial color=#0000ff
size=2>Execute the DOS command</FONT></SPAN></DIV>
<DIV><SPAN class=752422400-22092005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=752422400-22092005><FONT face=Arial color=#0000ff size=2>dir
/a-d /od /tc > files.txt</FONT></SPAN></DIV>
<DIV><SPAN class=752422400-22092005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=752422400-22092005><FONT face=Arial color=#0000ff
size=2>Read "files.txt" to get the list of files you want - not pretty but
possible.</FONT></SPAN></DIV>
<DIV><SPAN class=752422400-22092005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=752422400-22092005><FONT face=Arial color=#0000ff
size=2>Cheers,</FONT></SPAN></DIV>
<DIV><SPAN class=752422400-22092005><FONT face=Arial color=#0000ff
size=2>Kuet-Fung</FONT></SPAN></DIV>
<DIV><SPAN class=752422400-22092005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> delphi-bounces@ns3.123.co.nz
[mailto:delphi-bounces@ns3.123.co.nz]<B>On Behalf Of </B>Jeremy
Coulter<BR><B>Sent:</B> Thursday, 22 September 2005 11:41<BR><B>To:</B>
delphi@delphi.org.nz<BR><B>Subject:</B> [DUG] Grouping
files<BR><BR></FONT></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma; BACKGROUND-COLOR: white">Hi
All.</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma; BACKGROUND-COLOR: white">I
have been given a request that means I need to look inside some zip files in
an archived dir we have.</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma; BACKGROUND-COLOR: white">I
only need to look at certain files within a certain file date range BUT, we
unfortunitly have over 7700 files in this dir !!!! I know, I know....but this
is only a couple of mnths worth of files ! so we kinda have to live
with.</DIV>
<DIV
style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma; BACKGROUND-COLOR: white"> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma; BACKGROUND-COLOR: white">Is
there a way to "Group" files togeither so that when I do a TSearchRec search,
the files are in decending order of date?</DIV>
<DIV
style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma; BACKGROUND-COLOR: white">Then, I
can look at the file date and if its not within the range, I can stop the
searchrec.....I hope you understand what I mean.</DIV>
<DIV
style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma; BACKGROUND-COLOR: white"> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma; BACKGROUND-COLOR: white">I
thought about loading the files into an array, and sorting them on date then
getting rid of the ones I dont need or as it loops thru, just ignore the ones
I dont want, but this is just as slow as doing a SearchRec.</DIV>
<DIV
style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma; BACKGROUND-COLOR: white"> </DIV>
<DIV
style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma; BACKGROUND-COLOR: white">anyone
got any ideas?</DIV>
<DIV
style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma; BACKGROUND-COLOR: white"> </DIV>
<DIV
style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma; BACKGROUND-COLOR: white">Jeremy</DIV></BLOCKQUOTE></BODY></HTML>