Problem using copy action

I'm trying to use the copy action.  the file I'm copy to always prompts me when I do it by hand for (Overwrite? (Yes/No/All).

When I use the action (with the copy readonly flag checked), I get the following error.  is there a better way to do this?

 

[Action Failed] - Copy File(s) [ D:\temp\3plogic_fbwork1\3plogic\common\Settings\Developer\appSettings.xml -> D:\temp\3plogic_fbwork1\3plogic\service\TaskRunner\bin\Debug\Settings\Developer ]
Copying files: D:\temp\3plogic_fbwork1\3plogic\common\Settings\Developer\appSettings.xml -> D:\temp\3plogic_fbwork1\3plogic\service\TaskRunner\bin\Debug\Settings\Developer

    Files Copied

Failed to copy File : D:\temp\3plogic_fbwork1\3plogic\common\Settings\Developer\appSettings.xml -> D:\temp\3plogic_fbwork1\3plogic\service\TaskRunner\bin\Debug\Settings\Developer
Win32 Error : Access is denied

Hi Peter

Unfortunately the Access denied error comes from the CopyFileEx windows api call… my guess is that some other process has the file or part of it locked and there is not much we can do about that.

I've written to that file earlier in the installation.  Is there a more reliable way to copy the file that I've updated with finalbuilder previously?  I can execute the command from the dos prompt with no problem.

Which action did you use to write to the file? I’m wondering if FB is itself holding the lock on the file.

We are using Text Replace