Hello everyone
Is there any way to kill the python.exe in Task Managaer "On Windows" using visual basic
The Problem is that i do open more than 1 python file at the same, But on task manager it's hows me something like this
Python.exe
python.exe
python.exe
python.exe
I have got the code to kill any progress in the task manager using Visual basic, But It doesn't work with python, Because i can't tell which one i opened first or which one was the second or the last
Code:
Dim p() As System.Diagnostics.Process = Process.GetProcessesByName("python")
If p.Length = 1 Then
p(0).Kill()
any body could help me with this please?
Thanks :)