[DUG] Grouping files

Kyley Harris kyleyharris at gmail.com
Thu Sep 22 12:57:28 NZST 2005


I think he means, from his wording, that he needs to scan 7700 zip
files, to get the ones in a date period, to then open and analyze. He
is not trying to look inside the zip file itself with search rec.

On 9/22/05, Ross Levis <ross at stationplaylist.com> wrote:
>
> I don't think dir works with ZIP files.  I would be surprised
> FindFirst/FindNext worked with zip files.  So how did you get a TSearchRec
> containing files within a zip file?
>
> Ross.
>
>
> ----- Original Message -----
> From: KuetFung.Chong at sungard.com
> To: delphi at ns3.123.co.nz
> Sent: Thursday, September 22, 2005 12:28 PM
> Subject: RE: [DUG] Grouping files
>
>
> Not sure this will be faster or easier:
>
> Execute the DOS command
>
> dir /a-d /od /tc > files.txt
>
> Read "files.txt" to get the list of files you want - not pretty but
> possible.
>
> Cheers,
> Kuet-Fung
>
>
> -----Original Message-----
> From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]On
> Behalf Of Jeremy Coulter
> Sent: Thursday, 22 September 2005 11:41
> To: delphi at delphi.org.nz
> Subject: [DUG] Grouping files
>
>
> Hi All.
> I have been given a request that means I need to look inside some zip files
> in an archived dir we have.
> 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.
>
> Is there a way to "Group" files togeither so that when I do a TSearchRec
> search, the files are in decending order of date?
> 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.
>
> 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.
>
> anyone got any ideas?
>
> Jeremy
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>


--
Kyley Harris
Harris Software
+64-9-8455274
+64-21-671-821



More information about the Delphi mailing list