CopyFile Data Member Function

Copies a file from the source location to the destination location. The source and destination paths must be an absolute (C:\\MyFolder\\MyFile.txt) and all the folders in the entire directory tree of the destination path must exist (This function does not create destination directories.).

Prototype

int32 CopyFile( string p_sSrc, string p_sDst )

Parameters

Parameter Type Parameter Name Documentation
stringp_sSrcThe absolute path to the source file.
stringp_sDstThe absolute path to the destination file. The entire directory tree must exist, although the file itself won't exist until the copy operation finishes. Depending on a variety of factors, the file may exist before the Scenome command macro containing this code completes.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.