开发者

how to kill a process in vb.net

开发者 https://www.devze.com 2022-12-20 17:12 出处:网络
I\'ve launched wampserver using vb.net when the application loads. M开发者_StackOverflow中文版y problem is, how do I kill the wamp server process when I exit the program.Dim arrProcess() As Process =

I've launched wampserver using vb.net when the application loads. M开发者_StackOverflow中文版y problem is, how do I kill the wamp server process when I exit the program.


Dim arrProcess() As Process = System.Diagnostics.Process.GetProcessesByName("wampserver")

For Each p As Process In arrProcess
   p.Kill()
Next
0

精彩评论

暂无评论...
验证码 换一张
取 消