06-03-2011, 04:33 PM
(This post was last modified: 12-14-2011, 03:50 AM by Strafeness.)
Hello guys,
With this code you can simply kill a process:
If the code you see "notepad"edit this part with the process name of your program.
Best regards,
Strafeness
With this code you can simply kill a process:
Quote:For Each p As Process In System.Diagnostics.Process.GetProcessesByName("notepad")
Try
p.Kill()
p.WaitForExit()
Catch winException As System.ComponentModel.Win32Exception
Catch invalidException As InvalidOperationException
End Try
Next
If the code you see "notepad"edit this part with the process name of your program.
Best regards,
Strafeness