AIT_DirCreate

Description

Creates a new directory.

Format

bool AIT_DirCreate  (
 string strDirName    // Directory name
);

Parameters

strDirName (input)

Specify the name of a directory you want to create.

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
3ERROR_PATH_NOT_FOUND
5ERROR_ACCESS_DENIED
8ERROR_NOT_ENOUGH_MEMORY
14ERROR_OUTOFMEMORY
15ERROR_INVALID_DRIVE
19ERROR_WRITE_PROTECT
21ERROR_NOT_READY
23ERROR_CRC
53ERROR_BAD_NETPATH
64ERROR_NETNAME_DELETED
82ERROR_CANNOT_MAKE
87ERROR_INVALID_PARAMETER
112ERROR_DISK_FULL
123ERROR_INVALID_NAME
148ERROR_PATH_BUSY
183ERROR_ALREADY_EXISTS
206ERROR_FILENAME_EXCED_RANGE
267ERROR_DIRECTORY
1005ERROR_UNRECOGNIZED_VOLUME
1210ERROR_INVALID_COMPUTERNAME
1214ERROR_INVALID_NETNAME
1231ERROR_NETWORK_UNREACHABLE