View Full Version : Udating Locked file(s)
Sector10
09-12-2005, 09:19 AM
Hello to you all,
I want to update a file that is locked because it is openend by other users.
Hence my question:
How can i patch/update a locked file?
Kill the Connections or Moving it first and then copy the new file?
Kind regards,
Paul
Lorne
09-12-2005, 09:55 AM
I can think of three ways:
Ask the user to stop using the file. :) Copy the new version to a temporary location (or apply a patch to create the new version in a temporary location) and then replace the original file on the next reboot, e.g. using File.DeleteOnReboot and File.MoveOnReboot. Maybe even System.Reboot too. Use the Microsoft InUse.exe (http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/inuse-o.asp) tool or the freeware Locked Files Wizard (http://www.noeld.com/programs.asp?cat=misc#CopyLock).
Sector10
09-13-2005, 02:54 AM
Hello Lorne,
Thank you very much for the link to copylock.
The command line interface is really a great help.
I want to rename the existing locked file first, and when that is finished replace it with the updated file. If you could point me into the right direction how i can set this up using True Update then any help is more then welcome.
Kind regards,
Paul
Lorne
09-13-2005, 10:55 AM
Thank you very much for the link to copylock.
The command line interface is really a great help.Yeah, he has a bunch of really useful tools there. :)
I want to rename the existing locked file first, and when that is finished replace it with the updated file. If you could point me into the right direction how i can set this up using True Update then any help is more then welcome.You should be able to use a File.Run action to call the cl.exe file, and pass the appropriate arguments in the action's Args parameter. You'll probably want to set WaitForReturn to true as well.
Where you put the action depends on when you want it to happen, but you'll probably want it in your server script, or in an event on one of your server screens.
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.