WinRAR exits with a zero code (0) in case of successful operation. The exit code of non-zero indicates the some kind of error:
Code value | Description |
0 | Successful operation. |
1 | Warning. Non fatal error(s) occurred. |
2 | A fatal error occurred. |
3 | CRC error occurred when unpacking. |
4 | Attempt to modify a locked archive. |
5 | Write error. |
6 | File open error. |
7 | Wrong command line option. |
8 | Not enough memory. |
9 | File create error. |
255 | User break. |