Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 Distribution Function Administration Guide


AIT_DirCopy

Organization of this page

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 number

Error code

87

ERROR_INVALID_PARAMETER

266

ERROR_CANNOT_COPY