You can analyze the result of mcconsole.exe launch in cmd or bat script with the help of ERRORLEVEL.

 

Description of ERRORLEVEL codes

Code

Value

0

OK, the utility launched and worked correctly;

1

network error (issues when accessing the server);

2

incorrect UIN, login, or sender's email;

3

incorrect UIN, login, or recipient's email;

4

sent message can't be empty;

5

incorrect IntegrationAPI key;

6

no channel with such an UID;

7

a user is not in the specified conference;

8

user's ID is not found (search by UIN, nickname, or email);

9

Integration API is disabled on the server;

10

command line parameter is missing;

11

no such domain user-recipient is registered on the server;

12

no such domain user-sender is registered on the server.