The function FileCopy copies the file SourceName to the file DestName. The path of the destination file must exist (use ForceDirectories to create a new folder). If the parameter RemoveReadOnly is TRUE the read-only attribute is reset in the destination copy (i.e. when copying a file from CDROM the read-only attribute is not transferred to the harddisk).
On return, the function FileCopy delivers the following error codes:
0 ... no error
-1 ... no such sources file
-2 ... cannot create destination file
-3 ... write error during copying
-4 ... read error during copying
|