SolvedKilling A Process

Posts 1–4 of 4 · Page 1 of 1
Killing A Process
Code:
    
PrivateSub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click


        
ForEach P AsProcessIn System.Diagnostics.Process.GetProcessesByName("Engine.exe")
        P.Kill()
 
Next
Me.Close()

EndSub
this should work... but it doesnt.
What process are you trying to kill?
Quote Originally Posted by Domconz View Post
What process are you trying to kill?
Are you blind? Engine.

@speedforyou Take the ".exe" off the end of Engine.
Code:
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
    For Each P AsProcessIn System.Diagnostics.Process.GetProcessesByName("Engine")
        p.Kill()
    Next
    Application.Exit()
End Sub
Quote Originally Posted by Jason View Post


Are you blind? Engine.

@speedforyou Take the ".exe" off the end of Engine.
Code:
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
    For Each P AsProcessIn System.Diagnostics.Process.GetProcessesByName("Engine")
        p.Kill()
    Next
    Application.Exit()
End Sub
as ive allready tryed it without the .exe.... and it didnt work


---------- Post added at 06:23 AM ---------- Previous post was at 06:13 AM ----------

/req closed solved
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?