In a lot of network environments, you (still ) find a situation where workstations run a .EXE from a network share.
In these situations, you cannot update the .EXE on the server: you get “Access Denied” errors.
Below is a simple batch-file trick to overcome this.
It kills all the handles that the workstations have to the .EXE
After you have run this batch-file, you can copy the .EXE.
Note:
There still is a small race condition: if between you kill the handles and copying the new .EXE, someone starts the old .EXE Read the rest of this entry »