LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CopyFile error code -9

Hi

I got recently the error code -9 from the CVI function CopyFile.

But in the Help description, it ends at -8.

 

Can anyone tell me what the return -9 means?

 

I use CVI 2013 SP2.

 

Best Regards

Pius

0 Kudos
Message 1 of 4
(2,774 Views)

maybe show us the line corresponding of this error message 

0 Kudos
Message 2 of 4
(2,751 Views)

this is the line 58:

iResult = CopyFile (cSource, cTarget);

The file wasn't copied, when the error -9 appeared.

 

May be the file was opened by another application, but normally I can copy even then.

I just wonder, why the help is not helping Smiley Wink

0 Kudos
Message 3 of 4
(2,747 Views)

RenameFile uses the same error codes as CopyFile, plus it specifies that an error code of -9 means "New file already exists".

 

I would guess that your target file is either open in another application or set to read-only.

0 Kudos
Message 4 of 4
(2,733 Views)