Touch files in Windows (update Timestamp)Permanent link for this heading

Last update: 25 October 2022 (cf)

SummaryPermanent link for this heading

Sometimes it is necessary to update a files timestamp without changing the content (e.g. replacing a .dll file).
This operation is called "touching" and there is even a command called touch for use on Linux systems.

There are multiple ways to accomplish this operation in Microsoft Windows, but the easiest one is using the copy command.

SolutionPermanent link for this heading

Use the following syntax in any Windows shell to update the timestamp of a file to the current system time:

copy /b filename.ext +,,


/b is the parameter for binary mode.

filename.ext must be replaced with the name of the file to be touched.

The + is used to merge files. When used as shown above this means source = destination.

InformationPermanent link for this heading

For further information visit the copy command-line reference:

Why is this necessary?

Fabasoft Folio uses an “automatic update feature” on the Kernel-based servers (Web server, Conversion server etc.) called “Bootstrap”. During the Bootstrap the server checks if newer files (for example DLLs to execute the Fabasoft Folio Kernel) are located in your Fabasoft Folio domain. If files in the domain are newer then at the local system, these new files are copied from the Backend server to the local server.

One situation you possibly need to touch a file is, if you try to create a Kernel trace and you need to overwrite the original dll with a trace dll provided by Fabasoft. The “Bootstrap“ may detect that the trace dll is older than the original one, and overwrites the trace dll. The original dll will not trace and the recorded trace will stay nearly empty (no tracing output).

Download PDF

Download PDF