Below are F-PROT Command-Line Scanner (fpscan.exe) return codes which accurately reflect the success or failure of the scan operation with their description.
This is a bit vector and you can have more than one result per scan.
| 0 |
All clean. |
| 1 |
At least one virus-infected object was found and remains. |
| 2 |
At least one suspicious object was found and remains. |
| 3 |
At least one virus and one suspicious file found and remains (2+1). |
| 4 |
Scanning was aborted by user before it finished; nothing found so far. |
| 5 |
At least one virus found, but scan was aborted before it finished (4+1). |
| 6 |
At least one suspicious file found, but scan was aborted before it finished (4+2). |
| 7 |
At least one suspicious file and one virus found, but scan was aborted before it finished (4+2+1). |
| 8 |
Some imposed restrictions were reached causing the scanner to skip files (maxdepth directories, maxdepth archives, exclusion list, etc). |
| 9 |
At least one virus found, not all files were scanned due to restrictions on program. |
| 10 |
At least one suspicious file found, not all files were scanned due to restrictions on program (8+2). |
| 11 |
At least one suspicious file and one virus were found, not all files were scanned due to restrictions on program (8+2+1). |
| 12 |
Nothing found. Restrictions caused something to be skipped and scan was aborted (8+4). |
| 13 |
At least one virus found before scan was aborted. Restrictions caused something to be skipped (8+4+1). |
| 14 |
At least one suspicious file found before scan was aborted. Restrictions caused something to be skipped (8+4+2). |
| 15 |
At least one virus and one suspicious file found before scan was aborted. Restrictions caused something to be skipped (8+4+2+1). |
| 16 |
Some platform error occurred e.g. I/O errors, insufficient privileges, out of memory, etc. |
| 17 |
At least one virus found then some platform error occurred (16+1). |
| 18 |
At least one suspicious file found then some platform error occurred (16+2). |
| 19 |
At least one virus and one suspicious file found, some platform error occurred (16+2+1). |
| 20 |
Some platform error occurred and scan was aborted. This includes initialization errors (16+4). |
| 21 |
At least one virus found before scan was aborted, then some platform error occurred (16+4+1). |
| 22 |
At least one suspicious file found before scan was aborted, then some platform error occurred (16+4+2). |
| 23 |
At least one suspicious file and one virus was found before scan was aborted, then some platform error occurred (16+4+2+1). |
| 24 |
Some platform error occurred and some restrictions were reached (16+8). |
| 25 |
At least one virus found, then some platform error occurred and some restrictions were reached (16+8+1). |
| 26 |
At least one suspicious file found, then some platform error occurred and some restrictions were reached (16+8+2). |
| 27 |
At least one suspicious file and one virus found, then some platform error occurred and some restrictions were reached (16+8+2+1). |
| 28 |
Some platform error occurred and some restrictions were reached and then scan aborted (16+8+4). |
| 29 |
At least one virus found, then some platform error occurred and some restrictions were reached and then scan aborted (16+8+4+1). |
| 30 |
At least one suspicious file found, then some platform error occurred and some restrictions were reached and then scan aborted (16+8+4+2). |
| 31 |
At least one suspicious file and one virus found, then some platform error occurred and some restrictions were reached and then scan aborted (16+8+4+2+1). |
| 32 |
Internal engine error occurred (whatever the engine fails at). |
| 33 |
At least one virus found before an engine error occurred (32 + 1). |
| 34 |
At least one suspicious file found before an engine error occurred (32+2). |
| 35 |
At least one virus and one suspicious file found before an engine error occurred (32+2+1). |
| 36 |
Internal Engine error occurred AND scan aborted (32+4) (Can actually happen). |
| 37 |
At least one virus found before an internal engine error occurred AND scan aborted (32+4+1). |
| 38 |
At least one suspicious file found before an internal engine error occurred AND aborted (32+4+2). |
| 39 |
At least one suspicious file and one virus found before an internal engine error occurred AND scan aborted (32+4+2+1). |
| 40 |
Some restrictions reached and an internal engine error occurred (32+8). |
| 41 |
At least one virus found, some restrictions were reached and then an internal engine error occurred (32+8+1). |
| 42 |
At least one suspicious file found, some restrictions were reached and then an internal engine error occurred (32+8+2). |
| 43 |
At least one suspicious file and one virus found, some restrictions reached and then an internal engine error occurred (32+8+2+1). |
| 44 |
Some restrictions reached, then an internal engine error occurred and then the scan aborted (32+8+4). |
| 45 |
At least one virus found, some restrictions reached an internal engine error occurred and then the scan aborted (32+8+4+1). |
| 46 |
At least one suspicious file found, some restrictions reached, an internal engine error occurred and then the scan aborted (32+8+4+2). |
| 47 |
At least one suspicious file and one virus found, some restrictions reached, an internal engine error occurred and then the scan aborted (32+8+4+2+1). |
| 48 |
Some platform error and an internal engine error occurred. NOTE: This includes, but is not limited to fatal crash errors (32+16). |
| 49 |
At least one virus found before an error/crash occurred (32+16+1). |
| 50 |
At least one suspicious file found before an error/crash occurred (32+16+2). |
| 51 |
At least one suspicious file and one virus found before an error/crash occurred (32+16+2+1). |
| 52 |
Internal Engine and platform errors occurred and then scan aborted (32+16+4). |
| 53 |
At least one virus found. Internal engine and platform errors occurred and then scan aborted (32+16+4+1). |
| 54 |
At least one suspicious file found. Internal engine and platform errors occurred and then scan aborted (32+16+4+2). |
| 55 |
At least one suspicious file and one virus found. Internal engine and platform errors occurred and then scan aborted (32+16+4+2+1). |
| 56 |
All kinds of errors and some restrictions were reached (32+16+8). |
| 57 |
At least one virus found amidst all kinds of errors and restrictions was reached (32+16+8+1). |
| 58 |
At least one suspicious file found amidst all kinds of errors and restrictions was reached (32+16+8+2). |
| 59 |
At least one suspicious file and one virus found amidst all kinds of errors and restrictions were reached (32+16+8+2+1). |
| 60 |
All kinds of errors and some restrictions were reached before scan aborted (32+16+8+4). |
| 61 |
At least one virus found then all kinds of errors and restrictions was reached before scan aborted (32+16+8+4+1). |
| 62 |
At least one suspicious file then all kinds of errors and restrictions was reached before scan aborted (32+16+8+4+2). |
| 63 |
At least one suspicious file and one virus found then all kinds of errors and restrictions were reached before scan aborted (32+16+8+4+2+1). |
| 64 |
At least one object was not scanned (encrypted file, unsupported/unknown compression method, corrupted or invalid file). |
| 128 |
At least one object was disinfected. |