111,120
社区成员
发帖
与我相关
我的任务
分享
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = false ;
p.StartInfo.Arguments = "/c" + "command";
p.StartInfo.WorkingDirectory = Application.StartupPath + "\\tc";
p.Start();
p.StandardInput.WriteLine( "tcc -Iinclude -Llib Hello.c");