NINNI SINGH

NINNI SINGH

  • NA
  • 5
  • 3.1k

how to close the Python code from c#

May 11 2018 6:39 AM
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
 
 

Answers (1)