Last update: 25 October 2022 (cf)
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.
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.
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).