Indigo Rose Software
  #1  
Old 09-12-2005
Sector10 Sector10 is offline
Indigo Rose Customer
 
Join Date: Feb 2003
Posts: 3
Cool Udating Locked file(s)

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

Last edited by Sector10; 09-12-2005 at 09:32 AM.
  #2  
Old 09-12-2005
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
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 tool or the freeware Locked Files Wizard.
__________________
--[[ Indigo Rose Software Developer ]]

Last edited by Lorne; 09-12-2005 at 10:03 AM.
  #3  
Old 09-13-2005
Sector10 Sector10 is offline
Indigo Rose Customer
 
Join Date: Feb 2003
Posts: 3
CopyLock is the best solution

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
  #4  
Old 09-13-2005
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
Quote:
Originally Posted by Sector10
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.
Quote:
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.
__________________
--[[ Indigo Rose Software Developer ]]
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Unused Files from Your Project Desmond AutoPlay Media Studio 5.0 Examples 0 09-26-2003 11:07 AM
method to index/compare user's files for update? intel352 Setup Factory 6.0 0 01-15-2003 04:08 PM
INFO: Why Files are Renamed in the DATA Folder Support AutoPlay Media Studio 4.0 Examples 0 10-24-2002 04:36 PM
HOWTO: "Hide" Externally Referenced Files Support AutoPlay Media Studio 4.0 Examples 0 10-23-2002 04:19 PM
HOWTO: Remove Files that were Installed by a Patch or Alternate Source Support Setup Factory 6.0 Knowledge Base 0 09-24-2002 10:49 AM


All times are GMT -6. The time now is 11:07 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software