Quickest way to find the oldest file in a directory using Delphi

Posted by Pieter van Wyk on Stack Overflow See other posts from Stack Overflow or by Pieter van Wyk
Published on 2010-03-23T12:30:08Z Indexed on 2010/03/23 12:33 UTC
Read the original article Hit count: 509

Filed under:
|
|

HI

We have a large number of remote computers that capture video onto disk drives. Each camera has it's own unique directory and there can be up to 16 directories on any one disk.

I'm trying to locate the oldest video file on the disk but using FindFirst/FindNext to compare the File Creation DateTime takes forever.

Does anybody know of a more efficient way of finding the oldest file in a directory? We remotely connect to the pc's from a central HO location.

Regards, Pieter

© Stack Overflow or respective owner

Related posts about delphi

Related posts about file