Welcome to TechNet Blogs Sign in | Join | Help

In Use File Replacement

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 to use it within a VB6 command line app.
My VB6 InUse command line app (VB6 source code, and how to develop command-line VB6 app with support for command line parameters)
Another Sample InUse file replacement code for download

Published Thursday, October 16, 2008 12:31 PM by quenguyen

Comments

No Comments
New Comments to this post are disabled
 
Page view tracker