This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Executing sav32cli.exe programatically

Hi all,

I am working on a web application that has a requirement to do on-demand virus scanning on the uploaded file. I am planning to use Sophos' sav32cli.exe unless Sophos provide an API that can be used within C# codes.

I have read information about how to use sav32cli.exe and would like to confirm the following:

If I use sav32cli.exe -ss which basically running it in silent mode except when an error occurred or a virus found, can I safely assume that if the command doesn't return anything then a virus was not found?

In my testing, I can't get the error codes or extended error codes that are listed below:

Error codes
-----------
SAV32CLI returns the following error codes:
0 If no errors are encountered and no viruses are found.
1 If the user interrupts the execution by pressing Esc.
2 If some error preventing further execution is discovered.
3 If viruses or virus fragments are discovered.
Extended error codes
A different set of error codes will be returned if SAV32CLI is run with the -EEC command-line option:
0 If no errors are encountered and no viruses are found.
8 If survivable errors have occurred.
16 If password-protected files have been found and not decrypted.
20 If viruses have been found and disinfected.
24 If viruses have been found and not disinfected.
28 If viruses have been found in memory.
32 If there has been an integrity check failure.
36 If unsurvivable errors have occurred.
40 If execution has been interrupted.

Or anyone can suggest a better way to do this? Thank you in advance.

:11475


This thread was automatically locked due to age.
Parents
  • The use of SAV32CLI is for support purposes and not in a production environment called by applications as this breaches the terms of the license.

    There are two products which are available for this purpose

    SAVI - requires the use of an SDK or programming skills

    SAVDI - can be called by scripts with the responses required for your purpose.

    :19121
Reply
  • The use of SAV32CLI is for support purposes and not in a production environment called by applications as this breaches the terms of the license.

    There are two products which are available for this purpose

    SAVI - requires the use of an SDK or programming skills

    SAVDI - can be called by scripts with the responses required for your purpose.

    :19121
Children
No Data