Srs,
Estou querendo rodas um antivirus da mcfee (viruscan) porem estou tendo um peuqno problema
quando rodo o programa atraves do codigo
Runtime run = Runtime.getRuntime();
Process pp= run.exec("c:/viruscan/scan c:\\teste\\EICAR.txt");
Eu não obtenho nenhum retorno apesar do programa ser executado corretamente.
Se eu rodar esse mesma linha no prompt do DOS vem um retorno que eu gostaria de capturar atraves do java pra tratar.
Existe algum parametro a ser passado ao Process ou runtime para capturar o retorno do programa.
VEja o retorno que tenho quando executo no dos o comando e que eu queria capturar na classe java é o seguinte é o seguinte
[quote]
McAfee VirusScan for Win32 v5.30.0
Copyright © 1992-2008 McAfee, Inc. All rights reserved.
(408) 988-3832 EVALUATION COPY - Jun 16 2008
Scan engine v5.3.00 for Win32.
Virus data file v5334 created Jul 08 2008
Scanning for 424202 viruses, trojans and variants.
This program is more than 10 months old. New viruses come out all the
time - we would suggest that you upgrade your copy.
06/30/2009 08:22:17
Options:
SCA.DAT /REPORT ROGERO.TXT
No file or directory found matching C:\viruscan\SCA.DAT
Time: 00:00.00
Thank you for choosing to evaluate VirusScan from McAfee.
This version of the software is for Evaluation Purposes Only and may be
used for up to 30 days to determine if it meets your requirements. To
license the software, or to obtain assistance during the evaluation
process, please call (408) 988-3832. If you choose not to license the
software, you need to remove it from your system. All use of this
software is conditioned upon compliance with the license terms set forth
in the README.TXT file.[/quote]
Alguma dica ? ou alguem conhece uma api para invocar o virusscan da mcafee ?