Command line return code - possible to change?

Discussion in 'ESET NOD32 Antivirus' started by ITemplate, Oct 17, 2009.

Thread Status:
Not open for further replies.
  1. ITemplate

    ITemplate Registered Member

    Joined:
    Apr 19, 2009
    Posts:
    7
    Hi,

    Using Nod32 version 4, Im having my trouble with the command line tool. It says in the documentation that there are several return codes if thing go wrong. Either because there was an error or perhaps a virus was found.

    An example is return code 1 which is "virus found and cleaned". Code 50 is just "virus found". The only simple thing is return code 0 which is "all ok".

    But I have these tools that require a single result code if things are not "all ok" - so it the other way around. Is there any way to change the command line result codes to always just return 0 or 1 for example?

    --
     
  2. Marcos

    Marcos Eset Staff Account

    Joined:
    Nov 22, 2002
    Posts:
    14,374
    In your case, use code 1 if threats are supposed to be cleaned or code 50 if cleaning doesn't matter.
     
Thread Status:
Not open for further replies.