Jump to content

Command Line Parameters


Recommended Posts

Start /wait c:\mbam-setup.exe /verysilent /norestart

cd "c:\Program files (x86)\Malwarebytes' Anti-Malware\"

PING 1.1.1.1 -n 10 -w 1000 >NUL

Start Mbam.exe /register blah blah-blah-blah-blah /update -silent /quickscan -silent -remove -reboot

That's my batch file, what am I doing wrong?

I have the PING portion as a delay in the batch file...

I'm trying to set this up to install silently, update silently, run and remove silently then reboot if needed. I know once its installed why install again, It's just something i want to get it to do...

I did search around the forums before I posted but I wasn't able to get this to happen..

Link to post
Share on other sites

This sounds like you are trying to do some stuff in the corporate environment.... please contact corporate-support@malwarebytes.org

with you full contact info and they will be able to help you.

Nothing in the corporate environment... just private use. It's only on my computer and I'm just a batch file ######... ill message them but as I said I only run it on my unit. I wasn't sure where to get a more extensive list of the commandline parameters. Any help would be appreciated. I've already written a java script file to hide the batch file window so the working batch file is all I'm missing...

Link to post
Share on other sites

have you tried having a look at the Malwarebytes AntiMalware Help file?

Yea I read through it and that's why I'm having issues... I feel like its all coded the right way but to no avail... does /verysilent /norestart still work?

Link to post
Share on other sites

You can only use one command line argument that starts with a slash ('/') at a time, so it would need to be something like what is in the following code box:

cd "\Program files (x86)\Malwarebytes' Anti-Malware\"
mbam.exe /register <id> <key>
mbam.exe /update -silent
mbam.exe /scan -quick -silent -remove -reboot

Link to post
Share on other sites

Start /wait c:\fix-it\mbam.exe /verysilent /norestart

cd "c:\Program files (x86)\Malwarebytes' Anti-Malware\"

PING 1.1.1.1 -n 30 -w 1000 >NUL

RD C:\Fix-it /S /Q

mbam.exe /register Blah blah-blah-blah-blah

PING 1.1.1.1 -n 30 -w 1000 >NUL

mbam.exe /update -silent

PING 1.1.1.1 -n 30 -w 1000 >NUL

mbam.exe /quickscan -silent -remove -reboot

That seems to work perfect!

Link to post
Share on other sites

That seems to work perfect!

I see you figured it out. :D

mbam.exe and mbam-setup.exe a very much different in how they accept command line arguments. The installer can only be executed once, so it must accept more than one command line argument in a single run.

Link to post
Share on other sites

Curious where you got this entry as it has only been sent to Corporate users. Also why would anyone need a batch file to install on a single computer in such a fashion?

PING 1.1.1.1 -n 10 -w 1000 >NUL

Oh well... glad you got it going and are set again.

Doing an internet search for "batch file delays" will lead you to several sites suggesting ping... as for my batch file, I alpha test all kinds of software as a job, so I see the buggyest I'd software and often reformat 2 to 3 times a week... my job is to find the major problematic issues and create solutions for them... :-)

Link to post
Share on other sites

Doing an internet search for "batch file delays" will lead you to several sites suggesting ping... as for my batch file, I alpha test all kinds of software as a job, so I see the buggyest I'd software and often reformat 2 to 3 times a week... my job is to find the major problematic issues and create solutions for them... :-)

Why not just create an image of the drive after installing and configuring everything? Granted you have to update those images every now and then, but that's easier than reinstalling everything each time.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
Back to top
×
×
  • Create New...

Important Information

This site uses cookies - We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.