The only way to do that is to get rid of the handle the process has to the file you are overwriting.
It's either a service or a desktop application accessing the file. You can find out what has access to the file using handle.exe from SysInternals.
Once you know what is accessing the file you can stop/kill it remotely (assuming you have permissions to do so).