cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
raj
Level 6

How to copy the files that are already in use?

Hi,
I have used the XCopyFile function for copying some files from one location to another in our installer by using Installshield 2008. Now in production we found a bug like XCopyFile does not copy the file that is already getting used by some other application. So, i have a query like how to copy these type of files. I know that it is some generic type of question but i didn't find any way for copying these files.
Please let me know if some one have any idea or way for how to achieve this.
Thanks
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

Does the LOCKEDFILE flag help? The "XCopyFile" help topic has more information.
0 Kudos
raj
Level 6

LOCKEDFILE flag is useful when our target file is getting used by some application and we want to overwrite it. But in my case source file is getting used by some application and can not be copied then.
0 Kudos
raj
Level 6

I have used XCOPY command of OS through LaunchAPPAndWait and it works fine. But the same locked source file is not getting copied by XCOPYFile function. I am not getting this isuue. Why is it happening, is it a bug or something?
0 Kudos