string str = "python.exe"; Process process = new Process(); process.StartInfo.FileName = str; process.StartInfo.RedirectStandardInput = true; process.StartInfo.UseShellExecute = false; process.StartInfo.RedirectStandardOutput = false; process.Start(); System.IO.StreamWriter SW = process.StandardInput; SW.WriteLine("import py_compile\r\n"); SW.WriteLine("py_compile.compile( \"IMAP2.PY\" )\r\n");
process.StartInfo.RedirectStandardOutput = false;
true
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)