AIT_ExecCommand

Description

Executes an MS-DOS or system command.

Format

bool AIT_ExecCommand  (
 string strCommandName     // MS-DOS command
);

Parameters

strCommandName (input)

Specify an application filename or a system command.

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
2ERROR_FILE_NOT_FOUND
3ERROR_PATH_NOT_FOUND
5ERROR_ACCESS_DENIED
8ERROR_NOT_ENOUGH_MEMORY
14ERROR_OUTOFMEMORY
21ERROR_NOT_READY
87ERROR_INVALID_PARAMETER
123ERROR_INVALID_NAME