Thursday, 26 June 2014

Setting a file's date/time to be the current date/time

I'd always used any app I had to hand or created one in my favourite programming language at the time.

I've just come across http://technet.microsoft.com/en-us/library/bb490886.aspx and needed to share:

  • Changing the time and date of a file
    If you want to assign the current time and date to a file without modifying the file, use the following syntax:
    copy /b Source+,,
    The commas indicate the omission of the Destination parameter.

No comments: