发布网友 发布时间:2024-10-24 07:47
共2个回答
热心网友 时间:2024-10-25 07:45
system(“pause”);
热心网友 时间:2024-10-25 07:41
System.Diagnostics.ProcessStartInfo process = null;
System.Diagnostics.Process p = null;
process = new System.Diagnostics.ProcessStartInfo();
process.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
process.FileName = "cmd.exe";
process.Arguments = "/c ";
process.Arguments = "pause";//让dos窗口不消失
p = System.Diagnostics.Process.Start(process);