WinRAR exits with a zero code (0) in case of successful operation.
Non-zero exit code indicates some kind of error:
| Code value |
Description |
| 0 |
Successful operation. |
| 1 |
Warning. Non fatal error(s) occurred. |
| 2 |
A fatal error occurred. |
| 3 |
Invalid checksum. Data is damaged. |
| 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. |
| 10 |
No files matching the specified mask and options were found. |
| 11 |
Wrong password. |
| 12 |
Read error. |
| 255 |
User break. |