FCopy (LabVIEW Manager Function)

MgErr FCopy(oldPath, newPath);

Purpose

Copies a file, preserving the type, creator, and access rights. The file to be copied must not be open. If an error occurs, the new file is not created.

Parameters

Name Type Description
oldPath Path Path of the file or directory you want to copy.
newPath Path Path, including filename, where you want to store the new file.

Return Value

MgErr, which can contain the following errors. If you receive errors from LabVIEW Manager functions, most error names correspond to LabVIEW error codes.

Value Corresponding Error Code or Description
noErrNo error.
mgArgErr1
mFullErr2
fIsOpen5
fIOErr6
fNotFound7
fNoPerm8
fDiskFull9
fDupPath10
fTMFOpen11