From: Kevin English on
Hi,
Can anyone explain the reasoning behind the fact that a successful
DeleteFile(<fn>) followed by a successful
CreateFile(<fn>...,CREATE_NEW..) sets the file creation time to the
old creation time rather than the current system time. I understand
that it is using a cached value, just not the reason why. I also
understand that I can set the file creation time to any time of my
choosing, but not sure why I should have to?
This behavior is confirmed on Windows XP NTFS file systems and I
expect it is consistent across all windows os's.
Thanks for any info.
--
Kevin English
From: jon on
On 28 July, 11:29, Kevin English <kengl...(a)4csoftware.com> wrote:
> Hi,
> Can anyone explain the reasoning behind the fact that a successful
> DeleteFile(<fn>) followed by a successful
> CreateFile(<fn>...,CREATE_NEW..) sets the file creation time to the
> old creation time rather than the current system time.  I understand
> that it is using a cached value, just not the reason why.  I also
> understand that I can set the file creation time to any time of my
> choosing, but not sure why I should have to?
> This behavior is confirmed on Windows XP NTFS file systems and I
> expect it is consistent across all windows os's.
> Thanks for any info.
> --
> Kevin English

See http://blogs.msdn.com/b/oldnewthing/archive/2005/07/15/439261.aspx
From: Kevin English on
On Tue, 27 Jul 2010 19:13:00 -0700 (PDT), jon <jpotter(a)gmail.com>
wrote:

>On 28 July, 11:29, Kevin English <kengl...(a)4csoftware.com> wrote:
>> Hi,
>> Can anyone explain the reasoning behind the fact that a successful
>> DeleteFile(<fn>) followed by a successful
>> CreateFile(<fn>...,CREATE_NEW..) sets the file creation time to the
>> old creation time rather than the current system time.
>
>See http://blogs.msdn.com/b/oldnewthing/archive/2005/07/15/439261.aspx
Thanks. I guess under some some circumstances I would have been
equally puzzled why the creation time wasn't preserved. Also liked
the Quantum Mechanics analogy.
--
Kevin English