Return values

After executing a command POICMD returns a value to its caller. This return value can be used in batch files (e.g. *.cmd or *.bat). You can use the %errorlevel% environment variable in order to retrieve the return value. For example if you call "poicmd" without parameters the return value will be 2.

Here is a complete list of all possible return values:

Value Meaning
0 POICMD successfully executed (and parameters where specified)
1 There where parameters but nothing to do (e.g. poicmd /help)
2 No parameter was specified. This is just a 'warning'.
4 You have specified an unknown parameter.
5 - 9 Not used.
10 The specified file could not be found.
11 The specified file already exists.
12 - 19 Not used.
20 You have specified an invalid number of command values.
21 An command parameter value has an invalid value (e.g. /lat:4801xy)
22 - 98 Not used.
99 Unspecified error. Look at the error message which gives you some information about the problem.
100 - .. Not used.