Re: Searching for files in chronological order
- From: "Gary Chanson" <gchanson@xxxxxxxxxxxxxxxx>
- Date: Thu, 4 Jan 2007 15:43:03 -0500
"Larry Smith" <no_spam@xxxxxxxxxxx> wrote in message
news:egENlXDMHHA.2028@xxxxxxxxxxxxxxxxxxxxxxx
FindNextFile()Doesn't a call to FindFirstFile() and consequitive calls to
return files/directories in the same order they've been created? If so
first subdirectory found would be it.
No, it depends on the file system. In NTFS for instance it's returned in
alphabetical order.
Even on a FAT volume, the order returned is not guaranteed to be date
ordered. It's simply the next entry physically in the directory. It will
only be date ordered if no entries are ever deleted or changed.
--
- Gary Chanson (Windows SDK MVP)
- Abolish Public Schools
.
- Follow-Ups:
- Re: Searching for files in chronological order
- From: Larry Smith
- Re: Searching for files in chronological order
- References:
- Searching for files in chronological order
- From: Andrew Chalk
- Re: Searching for files in chronological order
- From: Larry Smith
- Re: Searching for files in chronological order
- From: Grzegorz Wróbel
- Re: Searching for files in chronological order
- From: Larry Smith
- Searching for files in chronological order
- Prev by Date: Re: Searching for files in chronological order
- Next by Date: Re: Searching for files in chronological order
- Previous by thread: Re: Searching for files in chronological order
- Next by thread: Re: Searching for files in chronological order
- Index(es):
Relevant Pages
|