AIT_DirCopy

Description

Copies a directory to another location. If the specified copy destination directory already exists, it is overwritten.

Format

bool AIT_DirCopy  (
 string strSourceDirName,   // Copy source directory name
 string strTargetDirName    // Copy destination directory name
);

Parameters

strSourceDirName (input)

Specify a copy source directory name.

strTargetDirName (input)

Specify a copy destination directory name.

Return values

The return value is true if the function was executed normally, and false if not.

If the function has returned false, you can use AIT_GetLastError to acquire an extended error code. The following gives the error codes that AIT_GetLastError might return:

Extended error numberError code
87ERROR_INVALID_PARAMETER
266ERROR_CANNOT_COPY