Can someone help me with this? It's pretty self-explanatory.
I want to have the codeto kill a process, and the code to kill one IF it is active.
Thanks
Printable View
Can someone help me with this? It's pretty self-explanatory.
I want to have the codeto kill a process, and the code to kill one IF it is active.
Thanks
check this pls : http://www.vbforums.com/showthread.p...hlight=Process
Put this in your form load or button_click and it will end the process you specify (process.exe)Quote:
Originally Posted by Talix
Change process.exe to the process you'd like to end of course.Code:For Each Process In GetObject("winmgmts:").ExecQuery("Select Name from Win32_Process Where Name='process.exe'")
Process.Terminate
Next Process
Please (rep pts) rate me if this helps!