cancel
Showing results for 
Search instead for 
Did you mean: 

Virus Scan 8.8 Get Return Code in Command Line

I want the return code in command line itself when an virus is found. I hope that it was available in previous versions. If anyone knows how to achieve it please let me know.

1 Reply
Highlighted
Reliable Contributor rmetzger
Reliable Contributor
Report Inappropriate Content
Message 2 of 2

Re: Virus Scan 8.8 Get Return Code in Command Line


@srini1995 wrote:

I want the return code in command line itself when an virus is found. I hope that it was available in previous versions. If anyone knows how to achieve it please let me know.


Hi SRini1995,

If you are using Scan32.exe or Scan64.exe from VSE v8.8,  there are no documented ErrorLevel return codes. VSE does not support the use of command line scanning, though it is sometimes done.

A better solution is: VirusScan Command Line Scanner.

Scan.exe is an offline command line scanner.

Documented ErrorLevel return codes:

ErrorLevel Description

      0     The scanner found no viruses or other potentially unwanted software,

             and returned no errors.

      2     Integrity check on DAT file failed.

      6     A general problem occurred.

      8     The scanner was unable to find a DAT file.

    10     A virus was found in memory.

    12     The scanner tried to clean a file, the attempt failed, and the file

             is still infected.

    13     The scanner found one or more viruses or hostile objects such as a

             Trojan.horse program, joke program, or test file.

    15     The scanner's self.check failed; the scanner may be infected or

             damaged.

    19     The scanner succeeded in cleaning all infected files.

    20     Scanning was prevented because of the /FREQUENCY option.

    21     Computer requires a reboot to clean the infection.

I have a discussion here:

https://community.mcafee.com/t5/VirusScan-Enterprise-VSE/Command-Line-Scanning-McAfee-CLS-Batch/m-p/...

Hope this Helps.

Ron Metzger

Thanks,
Ron Metzger

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?
More McAfee Tools to Help You
  • Subscription Service Notification (SNS)
  • How-to: Endpoint Removal Tool
  • Support: Endpoint Security
  • eSupport: Policy Orchestrator
  • Community Help Hub

      New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

    • Find Forum FAQs
    • Learn How to Earn Badges
    • Ask for Help
    Go to Community Help

    Join the Community

      Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

    • Get helpful solutions from McAfee experts.
    • Stay connected to product conversations that matter to you.
    • Participate in product groups led by McAfee employees.
    Join the Community
    Join the Community