[DUG] Grouping files

Ross Levis ross at stationplaylist.com
Thu Sep 22 12:35:51 NZST 2005


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20050922/281801bf/attachment.html


More information about the Delphi mailing list