Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1714

File create date/time is sticky across file deletion.

$
0
0
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.
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

Viewing all articles
Browse latest Browse all 1714

Trending Articles