Solved

Filtering files by create date

Posted on 2002-07-14
2
128 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to center only a line in richedit? 4 61
Print Graphic and Text to Epson TM-T88v 12 386
Convert GUI app into console app for Win32 Env 5 109
Dynamically Created Query 3 62
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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…

829 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