Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Filtering files by create date

Posted on 2002-07-14
2
Medium Priority
?
133 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 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

886 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