Hitachi

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


AIT_SetCurrentDirectory

Organization of this page

Description

Changes a selected directory to the current directory.

Format

bool AIT_SetCurrentDirectory  (
  string strDirName    // Directory name
);

Parameters

strDirName (input)

Specify a 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

2

ERROR_FILE_NOT_FOUND

3

ERROR_PATH_NOT_FOUND

5

ERROR_ACCESS_DENIED

21

ERROR_NOT_READY

53

ERROR_BAD_NETPATH

123

ERROR_INVALID_NAME

161

ERROR_BAD_PATHNAME

1005

ERROR_UNRECOGNIZED_VOLUME

1210

ERROR_INVALID_COMPUTERNAME

1214

ERROR_INVALID_NETNAME