Hitachi

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


AIT_FileCopy

Organization of this page

Description

Copies a copy source file to a copy destination file. If the specified copy destination file already exists, it is overwritten.

Format

bool AIT_FileCopy  (
  string strSourceFileName,     // Copy source filename
  string strTargetFileName      // Copy destination filename
);

Parameters

strSourceFileName (input)

Specify a copy source filename. You can also use a wildcard (*).

strTargetFileName (input)

Specify a copy destination file or directory name. You cannot use the wild card. If the specified copy destination directory does not exist, it is created.

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

2

ERROR_FILE_NOT_FOUND

3

ERROR_PATH_NOT_FOUND

5

ERROR_ACCESS_DENIED

87

ERROR_INVALID_PARAMETER

117

ERROR_INVALID_CATEGORY