I would like to increment the access time of a file by a given number of hours, e.g. 12 hours.
I found a way to hack it using Unxutils touch.exe tool and calculate the new date manually:
touch.exe -a -t MMDDhhmmCCYY my_file.txt
However, I would like to automatize this without having to enter the new date manually. So here are my questions:
- How can I retrieve the access time of a file in DOS?
- How can I increment it?
- How can I put that together into a script/batch-file?
- Or are there better approaches?
Thanks a lot!