ProcessStartInfo start = new ProcessStartInfo(); // start.FileName = @"C:\Users\rahuls1\Desktop\DEmo\Temp\demo.py"; start.FileName = @"C:\Users\rahuls1\Desktop\DEmo\Temp\demo.py"; // start.Arguments = m_strApplStartupPath; start.ErrorDialog = false; start.UseShellExecute = false; start.RedirectStandardError = true; start.RedirectStandardInput = true; start.RedirectStandardOutput = true; start.CreateNoWindow = true; using (Process process = Process.Start(start)) { using (StreamReader reader = process.StandardOutput) { string result = reader.ReadToEnd(); } }
start.FileName = @"c:\PathToPython\Python"; start.Arguments = @"C:\Users\rahuls1\Desktop\DEmo\Temp\demo.py";
Python
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)