Process p = new Process();
p.StartInfo.FileName = "cmd.exe";
// p.StartInfo.Arguments = "/c Capture.exe";
p.StartInfo.WorkingDirectory = Directory.GetCurrentDirectory();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = true;
p.Start();
Thread.Sleep(20000);
p.StandardInput.WriteLine("Capture.exe -m p");
p.StandardInput.WriteLine("exit");
CaptureScreen
最新推荐文章于 2024-09-18 20:09:26 发布