Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Whats wrong with this code...? (one line code, please help)

Code
System.Diagnostics.Process.Start("mbam.exe /update")

It keeps on saying its wrong when I can simply run it from the Run menu, but I can't do it in VB. Now thats just messed up. Can someone tell me whats wrong? I am trying to add a parameter! Something I am missing?...😭😖

Its suppose to Update Mbam.

Regards,
L3g1tWa5te
Code
System.Diagnostics.Process.Start(Chr(34) + "mbam.exe /update" + Chr(34))

Maybe?
(Oct 31, 2010 01:14 PM)tflo Wrote:  
Code
System.Diagnostics.Process.Start(Chr(34) + "mbam.exe /update" + Chr(34))

Maybe?

Ill try it, thanks for the response....
What error do you get?
Try copy / pasting these (try each one not sure but worth a shot!)

Code
System.Diagnostics.Process.Start("mbam.exe/update")

Code
System.Diagnostics.Process.Start(mbam.exe /update)
(this this will work)
OR try to declare mbam.exe / update first.

E.G.
Dim mbam as mbam.exe /update
[Image: p6I7XN5.gif]
(Oct 31, 2010 01:36 PM)xxrangexx Wrote:  What error do you get?
Try copy / pasting these (try each one not sure but worth a shot!)

Code
System.Diagnostics.Process.Start("mbam.exe/update")

Code
System.Diagnostics.Process.Start(mbam.exe /update)
(this this will work)
OR try to declare mbam.exe / update first.

E.G.
Dim mbam as mbam.exe /update

Failcode.

Dim MBAM As String = "C:\Path\To\mbam.exe /update"
Shell(MBAM)
fuck.
[Image: wyEbCMi.png]

Not trying to be a dick, It just comes naturally.
(Oct 31, 2010 01:51 PM)StarZ Wrote:  Failcode.

Dim MBAM As String = "C:\Path\To\mbam.exe /update"
Shell(MBAM)
I have been coding in VB for about two days, please do give me a break.
Regardless, I was on the right tracks.
[Image: p6I7XN5.gif]
(Oct 31, 2010 01:56 PM)xxrangexx Wrote:  I have been coding in VB for about two days, please do give me a break.
Regardless, I was on the right tracks.

correction u beeen copying aned pasting
Code
Dim Proc As New Process
  Proc.StartInfo.Arguments = "/update"
  Proc.StartInfo.FileName = "C:\XXX\XXX\mbam.exe"
  Proc.Start()

If that does not work. PM me, I will assist you further.
it works, thanks StarZ

tooshawty
Code
Process.Start("Whatever\mbam.exe", "/update")


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by Formula 1Dec 6, 2019 01:11 AM 23 706 Dec 6, 2019 01:11 AM
Last Post: itcorp
[Java] by CupOfJavaJan 31, 2019 04:52 PM 6 277 Jan 31, 2019 04:52 PM
Last Post: Khamul
[C] by SIM-3466371Jan 5, 2019 12:55 PM 3 165 Jan 5, 2019 12:55 PM
Last Post: HFDone