SysDirCopy (FUN)
FUNCTION SysDirCopy : RTS_IEC_RESULT
Copies the contents of szSourceDir to szDestDir. Nonexisting destination path will be created. Depending of the parameters, all subdirectories and its content will be copied too, and existing files will be overwritten. NOTE: Empty direcories will be copied if xRecursive is TRUE.
- InOut:
Scope
Name
Type
Comment
Return
SysDirCopyRTS_IEC_RESULTReturns the runtime system error code (see CmpErrors_Itf.library)
Input
szDestDirREFERENCE TO STRING
Name of destination directory
szSourceDirREFERENCE TO STRING
Name of source directory
xRecursiveBOOLTRUE: all subdirectories and their contents are copied, FALSE: subdirectories are omitted
xOverwriteBOOLTRUE: existing files are overwritten, FALSE: existing files are left untouched