Solved

Filtering files by create date

Posted on 2002-07-14
2
127 Views
Last Modified: 2010-04-04
Hi

This may be a silly question, but is there a way to filter files in a folder so that my app can operate on only the files with a particular create/edit date.

At the moment I have a loop that checks the timestamp of each file, but as the routine has to search hundreds of files each time I run it, I want a quicker way.

John
0
Comment
Question by:jdthedj
2 Comments
 
LVL 7

Accepted Solution

by:
Cynna earned 50 total points
ID: 7153080
jdthedj,

Well, if you want some function that will filter this out for you, without iterating through all the files, I'm afraid there isn't such thing in Win world. You'll always have to go through all your files.
So, I don't think you'll find anything faster then FindFirst/FindNext and TSearchRec.Time to do the job.
0
 
LVL 3

Author Comment

by:jdthedj
ID: 7153185
That's what I was afraid of!

John
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi Form ownership 4 90
drawing animated level bar based on numbers 3 97
Firemonkey android show image from resource ? 1 42
shape, triangle, dbctrlgrid 3 5
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question