BE_CopyFile

BE_CopyFile ( from ; to )

 

Copies the file specified in the from path parameter, to the location in the to path parameter.  Both paths are full paths not folders, including the output filename.  

 

Version : 1.1

 

Parameters :
from : a system file path.
to : a system file path.

 

Result : 0 for a successful copy, or an OS error number for failure. eg 17 if a file already exists with the to name. In that case the file isn't copied, original file in the to location is not overwritten.

 

Notes :

This function does not behave the same as /bin/cp.

Important to note that the 'to' path needs to end with the desired name of the file.

Examples :

BE_CopyFile ( "/Users/username/Desktop/fileA.fp7" ; "/Users/username/path/to/file/fileA_copy.fp7" )

Have more questions? Submit a request

0 Comments

Article is closed for comments.