File dates ?

rps

Jul 6, 2008
436
6
In the example below I do not understand why the creation date for the file is later than the write date or why the last access date is the same as the creation date. Can someone please explain how these dates should be interpreted?

Wed Jul 4, 2012 9:15:14
F:\BAT>*dir /km datename.btm /t:a
6/03/2012 11:41 2,394 DATENAME.BTM

Wed Jul 4, 2012 9:15:44
F:\BAT>*dir /km datename.btm /t:w
12/09/2011 2:32 2,394 DATENAME.BTM

Wed Jul 4, 2012 9:15:48
F:\BAT>*dir /km datename.btm /t:c
6/03/2012 11:41 2,394 DATENAME.BTM

Wed Jul 4, 2012 9:15:55
F:\BAT>*dir /km datename.btm
12/09/2011 2:32 2,394 DATENAME.BTM

TCC 14.00.24 Windows Vista [Version 6.0.6002]
 
May 20, 2008
11,400
99
Syracuse, NY, USA
That seems to be what happens when you copy a file.

v:\> copy wmiuptime.btm wmiuptime2.btm
V:\wmiuptime.btm => V:\wmiuptime2.btm
1 file copied

v:\> do t in /L a w c (dir /k /m /t:%t wmiuptime.btm)
2012-06-05 00:56 849 wmiuptime.btm
2011-08-03 09:22 849 wmiuptime.btm
2012-06-05 00:54 849 wmiuptime.btm

v:\> do t in /L a w c (dir /k /m /t:%t wmiuptime2.btm)
2012-07-04 10:32 849 wmiuptime2.btm
2011-08-03 09:22 849 wmiuptime2.btm
2012-07-04 10:32 849 wmiuptime2.btm
 
May 20, 2008
3,515
4
Elkridge, MD, USA
The answer is simple. In the Windows and most other user friendly environments creation and access dates refer to the specific instance of a file, thus they would be different for a master and its copies. However, "change time" (or "write time" in some platforms) refer to the CONTENT, thus all copies would have the same value. Hence when you copy a file, the copy will be created AFTER the last time the content changed, and it is accessed by the copy process, thus the access time is also later.
 
Similar threads
Thread starter Title Forum Replies Date
H Help file pdf dates do not match Support 3
J History file load hangs if file has complete garbage in it... Support 1
jdanielp Cannot step into and/or call another .bat file when debugging .bat file Support 2
thorntonpg file explorer - short cut keys Support 1
JohnQSmith New online help file wrong logo Support 7
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
samintz How to? swap endianness in a binary file Support 12
vefatica `Back quotes` - command line vs. batch file Support 5
fpefpe How to? batch file size Support 2
Jay Sage Issues With TCMD File Explorer Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
Joe Caverly @FILESIZE and NTFS File Stream Support 1
Joe Caverly Embedding an .EXE (or other file) into a .BTM Support 8
U Command help on file names Support 5
S Concatenate all playlists into 1 file Support 22
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
Joe Caverly Rename file that begins with Emoji Support 7
Joe Caverly PSHELL and NTFS File Streams Support 2
P Kill all other instances of tcc from a btm batch file Support 2
D ffind hangs on large file Support 18
Alpengreis Documentation Minor issue in help file for view /E Support 1
fpefpe batch file ending early Support 18
J Licesne file location Support 1
K robocopy cancelling batch file processing Support 28
Jay Sage TCMD Crashes with "tctoolbar /c /r file" Support 5
A Unable to pass batch file arguments unaltered Support 18
MikeBaas How to...extract a string from a .json-file? Support 10
vefatica LIBRARY and file name completion? Support 4
D What does the file "..\Everything\Run history.csv" store? Support 5
H Takecommand.pdf failed not a pdf file Support 6
Joe Caverly DIRectory Colorization in v25 Help File Support 0
C show file description? with dir? Support 8
D When copying/moving, appending " (2)" to filename when the target file already exist. Support 7
R How to? Dir specific file search patterns with spaces in the pathnames? Support 6
Joe Caverly _EXPANSION in help file Support 0
Stefan Hassel Installation file TC 24.02 Build 47 is actually version 25.00.1 Support 10
vefatica Are @FILEDATE[file] and @FILEDATE[file,u] ever different? Support 2
K_Meinhard Help file error Support 1
Joe Caverly JOBMONITOR in Help File Support 1
D btm file command line augments comparing for string or math. Support 12
A Documentation [Help file] OPTION "//" synopsis formatting issue Support 0
vefatica Can TCC complete this file name? Support 5
G tcedit ist not run in tc 24 file explorer Support 10
M How to set Path variable for non-executable file extensions in 4DOS Support 8
I zip /M fails to delete file after adding to zip file Support 2
Charles Dye Is the "File Associations" installer dialog working? Support 4
J File explorer handling from command line? Support 2
Joe Caverly v24 Help File - DATEMONITOR Support 1
MickeyF Why does this batch file give me 'unknown command "else"' error? Support 17
vefatica TYPE goes crazy with no-BOM Unicode file Support 7

Similar threads