In order to replace running (being used) files, we can use the Windows MoveFileEx API. This allows the update to be made during the work hours, and after a PC/server restart, the new file will be available to use. The below is the illustration of how