Every now and again I find myself wishing that there was a Windows equivalent of the UNIX/Linux touch command to update time stamps on files. Well, it turns out that there is an easy way to do this, which I stumbled upon by using the copy command illustrated below.

The result of the above operation is an unmodified source file with an updated time stamp.

  • The /b parameter specifies that the file is binary, so you will always want to use this option unless you are stamping an ASCII based file, which is the default.
  • The + parameter is normally used to combine multiple files together, but is used by itself in this situation.
  • In this case, the required destination parameter is omitted by using the ,,