i am running python script using command prompt in c #.
Process.Start("CMD.exe", "\K Script.py");
but i want to stop the execution of python code when i press stop button. in various websites i come to know to use Process.Kill() command but it is not working in my case. please help me out. how i stop the execution of python code from C# Window form application