Process p = new Process();
   p.StartInfo.FileName = "cmd.exe";
   p.StartInfo.UseShellExecute = false;
   p.StartInfo.RedirectStandardInput = true;

   p.Start();
   p.StandardInput.WriteLine("XXXXXX");
   p.StandardInput.WriteLine("exit");


评论

该日志第一篇评论

发表评论

评论也有版权!