1.

Solve : batch file to open an antivirus program, update, run, close, then open another?

Answer»

scenario:
I have 3 anti-virus programs on a LIVE cd (UBCD) I want to write a batch file to open one of the antivirus programs, update, run, and remove threats. Then I want the 2nd and 3rd antivirus programs to do the same.


My big question
"Is this possible?" I know I can start the programs ,but the commands to get the programs to update and run I have no idea. If anyone knows about an article or book I could read that would be great. The antivirus/ MALWARE removal programs would be. Spybot sd, Malware byte, and Avast.

I read that you could find the path to the executable then go into command prompt and cd to that directory and the help command would bring up the batch commands associated with the program but no luck 4 me. For instance if mbam.exe was located in c:/programfiles(x86)/malwarebytes/mbam.exe then I would cd to malwarebytes and type "mbam /?" to bring up the batch command associated with malwarebytes. Here is the article: http://technet.microsoft.com/en-us/library/cc750054.aspx
I couldn't bring up anything so if anyone else has any insight that would be great.Check out the command line arguments for Spybot, MBAM and Avast

The MBAM update is interactive and pops up a windows informing the user the update was done. It also pops up a windows if any nasties are found. Spybot is completely automated with the right set of parameters. I have no experience with Avast.

Good luck. THANK you for the help I got the script to update and run a SCAN using a batch file but like you said it prompts you to click OK when it is updated and OK when it starts the scan. Does anyone know if its possible to write a script to click OK automatically without having to physically click OKFor Spybot, the following parameters will do everything unattended:

Code: [Select]SpybotSD.exe /autoupdate /autoimmunize /autocheck /autofix /autoclose

For MBAM, the following parameters will do the scan unattended:

Code: [Select]mbam.exe /scan -quick -terminate

You can replace the -quick parameter with -full for a full scan. The scan will only popup a window if any nasties are found so you can clean them up.

In both cases you may need to add a fully qualified path to the executable.

Quote

Does anyone know if its possible to write a script to click OK automatically without having to physically click OK

For the MBAM update popup you'll need to switch to a Windows script language (VBScript, JScript and Powershell 2 are already installed on your machine; others can be downloaded and installed)

As mentioned I have no experience with Avast, so try playing around with the parameters until something accomplishes what you need. All three programs have help files which may explain more than the webs pages that were posted.



Discussion

No Comment Found