Jump to content

command line help


Recommended Posts

not sure if im in the right place or not but having issue getting malwarebytes to run in command line.

 

Pardon my sloppy code:

Private Sub Button3_Click_1(sender As System.Object, e As System.EventArgs) Handles Button3.Click        If bol32 = False And bol64 = False Then            MsgBox("Please Select A OS Type", MsgBoxStyle.Exclamation, "Error: No OS Selected")        Else            Try                If bol32 = True Then                    Shell("C:\Program Files\Malwarebytes' Anti-Malware\mbam.exe /quickscan")                ElseIf bol64 = True Then                    Shell("C:\Program Files (x86)\Malwarebytes' Anti-Malware\mbam.exe /quickscan")                End If            Catch                MsgBox("Failed To Start Malwarebytes Process", MsgBoxStyle.Critical, "Processing Error")            End Try        End If    End Sub

Its telling me the file path does not exsist. When I go into command prompt I get the same thing. Pretty sue the shell command is correct but not sure where I made my mistake.

Link to post
Share on other sites

this works but I really would like to get it to auto quick scan for me

Private Sub Button3_Click_1(sender As System.Object, e As System.EventArgs) Handles Button3.Click        If bol32 = False And bol64 = False Then            MsgBox("Please Select A OS Type", MsgBoxStyle.Exclamation, "Error: No OS Selected")        Else            Try                If bol32 = True Then                    Process.Start("C:\Program Files\Malwarebytes' Anti-Malware\mbam.exe")                ElseIf bol64 = True Then                    Process.Start("C:\Program Files (x86)\Malwarebytes' Anti-Malware\mbam.exe")                End If            Catch                MsgBox("Failed To Start Malwarebytes Process", MsgBoxStyle.Critical, "Processing Error")            End Try        End If    End Sub
Link to post
Share on other sites

Why;  /scan -quick

 

and not

 

/scan /quick

 

or

 

-scan -quick  ?

Because the first is a switch, the second is a parameter/modifier for the switch. For example, if you wanted to perform a Flash scan, have it run silently, have it save a scan log regardless of user settings, remove any detected threats and reboot the system if required to complete the threat removal process it would be:
/scan -flash -silent -remove -log -reboot
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.