I've launched wampserver using vb.net when the application loads. My problem is, how do I kill the wamp server process when I exit the program.
A:
Dim arrProcess() As Process = System.Diagnostics.Process.GetProcessesByName("wampserver")
For Each p As Process In arrProcess
p.Kill()
Next
Jason W
2010-02-22 01:18:16
the same as here:http://vbnetsample.blogspot.com/2007/08/start-and-kill-process.htmlit doesnt work for me: "C:\wamp\wampmanager.exe"
2010-02-22 01:20:45
What "doesn't work" for you?
Anon.
2010-02-22 01:22:14
the code, the process still sits at the taskbar after having hit the button that executes the code. I even put the directory to which the executable file is located but still won't work.
2010-02-22 01:25:06
oops, sorry. it works, the only problem is the taskbar, thanks
2010-02-22 01:27:23
Glad you where able to figure out the problem - Cheers
Jason W
2010-02-22 13:26:04