05-30-2017 08:21 AM
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
05-30-2017 09:32 AM
maybe show us the line corresponding of this error message
05-30-2017 09:46 AM
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
05-30-2017 11:48 AM
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.