Jump to content


Photo

command line help


  • Please log in to reply
7 replies to this topic

#1 mholmes

mholmes

    New Member

  • Members
  • Pip
  • 2 posts

Posted 11 July 2013 - 02:26 PM

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.



#2 mholmes

mholmes

    New Member

  • Members
  • Pip
  • 2 posts

Posted 11 July 2013 - 02:30 PM

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


#3 Firefox

Firefox

    Forum Deity

  • Trusted Advisors
  • PipPipPipPipPipPip
  • 10,049 posts
  • Gender:Male
  • Location:USA

Posted 11 July 2013 - 02:31 PM

Hello and :welcome:

Are you using the Free Version or Paid Pro version, as the Free version does not support a lot of DOS commands....?

post-2065-0-92797800-1392234217.jpg


Dell Precision T7500, Win7 Ultimate 64bit fully updated, McAfee Corp Edition v8.8,
Watchguard Firewall, Intel Xeon E5606CPU, Dual Quad Core Processors, 16GB Ram,
E5606 @ 2.13GHz, Nvidia Quadro NVS420, Raid-1 Dual 1TB Sata 10000 rpm Hard Drives
Dual DVD Burners, IE10, Opera, MBAM, MBSB, MBAE


#4 exile360

exile360

    exile

  • Administrators
  • PipPipPipPipPipPip
  • 16,017 posts
  • Gender:Male

Posted 11 July 2013 - 02:38 PM

The command isn't /quickscan, that's why it's not working. It is /scan -quick (note the space between /scan and -quick). Additional commands can be found in the help file included with Malwarebytes Anti-Malware.
Samuel E Lindsey
Product Manager

Posted Image

Follow us: Twitter, Become a fan: Facebook

#5 David H. Lipman

David H. Lipman

    Forum Deity

  • Experts
  • PipPipPipPipPipPip
  • 4,256 posts
  • Gender:Male
  • Location:Jersey Shore USA
  • Interests:Malware Research, dSLR Photography, Numismatics & Surf Fishing

Posted 11 July 2013 - 03:44 PM

Why;  /scan -quick

 

and not

 

/scan /quick

 

or

 

-scan -quick  ?


David H. Lipman
DLipman@Verizon.Net

#6 exile360

exile360

    exile

  • Administrators
  • PipPipPipPipPipPip
  • 16,017 posts
  • Gender:Male

Posted 11 July 2013 - 05:44 PM

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

Samuel E Lindsey
Product Manager

Posted Image

Follow us: Twitter, Become a fan: Facebook

#7 David H. Lipman

David H. Lipman

    Forum Deity

  • Experts
  • PipPipPipPipPipPip
  • 4,256 posts
  • Gender:Male
  • Location:Jersey Shore USA
  • Interests:Malware Research, dSLR Photography, Numismatics & Surf Fishing

Posted 11 July 2013 - 06:35 PM

Thanx Samuel.


David H. Lipman
DLipman@Verizon.Net

#8 exile360

exile360

    exile

  • Administrators
  • PipPipPipPipPipPip
  • 16,017 posts
  • Gender:Male

Posted 11 July 2013 - 07:32 PM

Thanx Samuel.

No problemo :)
Samuel E Lindsey
Product Manager

Posted Image

Follow us: Twitter, Become a fan: Facebook




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users