Search found 1 match
- 15 Mar 2024 08:59
- Forum: DOS Batch Forum
- Topic: How to truncate a file without updating its timestamp?
- Replies: 2
- Views: 5938
How to truncate a file without updating its timestamp?
I have a Makefile, that needs to run under cmd. It contains the following command: @-touch -r "/tmp/ccprwrlE.ltrans0.o" "/tmp/ccprwrlE.ltrans0.o.tem" > /dev/null 2>&1 && mv "/tmp/ccprwrlE.ltrans0.o.tem" "/tmp/ccprwrlE.ltrans0.o" To summarize, it copies the timestamp of the ".o" file onto a ".o.tem" ...