Starting state of file dates:
Code:
d:\tcmd v22>filedates.btm history.sav test1.tmp
─────────────────────────────────────────────────────────────────────────────────────────────
history.sav
Creation Date: 10/26/2017 00:48
Last Mod/Write Date: 12/12/2017 19:53
Access Date: 12/07/2017 17:57
─────────────────────────────────────────────────────────────────────────────────────────────
test1.tmp
Creation Date: 12/13/2017 15:09
Last Mod/Write Date: 12/13/2017 16:26
Access Date: 12/13/2017 17:27
Attempting to update all three file dates using a command copied from above:
Code:
d:\tcmd v22>touch /r:w /r:c /r:a history.sav test1.tmp & filedates.btm history.sav test1.tmp
12/07/2017 17:57:18.427 D:\TCMD v22\test1.tmp
───────────────────────────────────────────────────────────────────────────────────────────────────
history.sav
Creation Date: 10/26/2017 00:48
Last Mod/Write Date: 12/12/2017 19:53
Access Date: 12/07/2017 17:57
───────────────────────────────────────────────────────────────────────────────────────────────────
test1.tmp
Creation Date: 12/13/2017 15:09
Last Mod/Write Date: 12/13/2017 16:26
Access Date: 12/07/2017 17:57
Only the /r:a is updated/copied
Trying without the /r:a changes a source date/time as well as a target date/time. The source and target date/times are updated with the current system time and the targets date. Totally unexpected.
Code:
d:\tcmd v22>touch /r:w /r:c history.sav test1.tmp & filedates.btm history.sav test1.tmp, still without affecting the creation date/time.
12/13/2017 16:30:16.863 D:\TCMD v22\history.sav
12/13/2017 16:30:16.863 D:\TCMD v22\test1.tmp
────────────────────────────────────────────────────────────────────────────────────────
history.sav
Creation Date: 10/26/2017 00:48
Last Mod/Write Date: 12/13/2017 16:30
Access Date: 12/07/2017 17:57
────────────────────────────────────────────────────────────────────────────────────────
test1.tmp
Creation Date: 12/13/2017 15:09
Last Mod/Write Date: 12/13/2017 16:30
Access Date: 12/07/2017 17:57
The only method to copy the sources creation date/time, that succeeded, was to use "touch /r:c History.sav test.tmp" alone.
The changes to the source date/time baffle me, since I did not expect the source date/time to ever change with using /r:.
I assume this is WAD so I'm back to using the /r:[acw] individually.
BTW, I tried this in V21 with similar results.