|
|
CreateFile() create time
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
|
|
0
|
|
|
|
Reply
|
Kevin
|
7/28/2010 1:29:32 AM |
|
On 28 July, 11:29, Kevin English <kengl...@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. =A0I understand
> that it is using a cached value, just not the reason why. =A0I 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
|
|
0
|
|
|
|
Reply
|
jon
|
7/28/2010 2:13:00 AM
|
|
On Tue, 27 Jul 2010 19:13:00 -0700 (PDT), jon <jpotter@gmail.com>
wrote:
>On 28 July, 11:29, Kevin English <kengl...@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
|
|
0
|
|
|
|
Reply
|
Kevin
|
7/28/2010 2:47:28 AM
|
|
|
2 Replies
454 Views
(page loaded in 0.074 seconds)
Similiar Articles: CreateFile() create time - comp.os.ms-windows.programmer.win32 ...Hi, Can anyone explain the reasoning behind the fact that a successful DeleteFile() followed by a successful CreateFile(...,CREATE_NEW..) sets the ... How to dynamically create filenames w/date/time stamps. - comp ...I poked around a for a way to include a time stamp in the filename of a export, and didn't find a clear answer that didn't involve buying a plugin. Ev... create file with timestamp 6 hours back - comp.unix.solaris ...Hi, I have tried researching a lot on this - but the solution still evades me. I intend to create a file using the touch command with -t, so that th... Creating Time Stamped Excel File - comp.soft-sys.matlabcreate file with timestamp 6 hours back - comp.unix.solaris ... Creating Time Stamped Excel File - comp.soft-sys.matlab Creating Time Stamped Excel File - comp.soft-sys ... Create afile - comp.lang.asm.x86create file with timestamp 6 hours back - comp.unix.solaris ... Hi, I have tried ... How to create epoch time variable with gawk? - comp.unix.shell ... The command creates ... ERROR Resource conflict - comp.laptopsDesktop file conflict with win 7 :S - comp.emacs ... CreateFile error 32 when trying set file time « Tamim ... function can create a handle to a communications resource ... how to get microsecond file timestamps - comp.unix.solaris ...CreateFile() create time - comp.os.ms-windows.programmer.win32 ... how to get microsecond file timestamps - comp.unix.solaris ... CreateFile() create time - comp.os.ms ... Desktop file conflict with win 7 :S - comp.emacsCreateFile() create time - comp.os.ms ... comp.unix.solaris ... time isn't synced across servers to microsecond accuracy but that's ok for my use. ... create file with ... eDrawings, VB6 and time/date stamp - comp.cad.solidworks ...create file with timestamp 6 hours back - comp.unix.solaris ... How to dynamically create filenames w/date/time stamps. - comp ... create file with ... Index on timestamp with timezone AT LOCAL - comp.databases.oracle ...Hi all, I have a table with a time stamp with timezone column: CREATE TABLE TEST_TZ ... create file with timestamp 6 hours back - comp.unix.solaris ... Index ... CreateFile function - Microsoft Corporation: Software, Smartphones ...However, some I/O operations take more time, because data is not ... On NTFS file systems, you can use CreateFile to create separate streams within a ... CreateFile() create time - comp.os.ms-windows.programmer.win32 ...Hi, Can anyone explain the reasoning behind the fact that a successful DeleteFile() followed by a successful CreateFile(...,CREATE_NEW..) sets the ... 7/22/2012 11:49:43 AM
|
|
|
|
|
|
|
|
|