I suppose this is just a curiosity, as it occurs in both TCmd and the Windows command shell.
The creation timestamp of a file persists across deletion and re-creation of the file.
Read more
The creation timestamp of a file persists across deletion and re-creation of the file.
Code:
[C:\batch]type create-date-problem.btm
@ echo off
:: Please start this test with a new file that has not been created
:: AT ANY TIME within this TCmd session.
:: Run it again, if you want, with the same filename.
set fname=%1
echo foo > %fname
echo File %fname as originally created:
gosub SHOW...
Read more