tags:

views:

44

answers:

1

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
the same as here:http://vbnetsample.blogspot.com/2007/08/start-and-kill-process.htmlit doesnt work for me: "C:\wamp\wampmanager.exe"
What "doesn't work" for you?
Anon.
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.
oops, sorry. it works, the only problem is the taskbar, thanks
Glad you where able to figure out the problem - Cheers
Jason W