日期:2014-05-18 浏览次数:20805 次
System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo(); Info.FileName = "test.exe"; Info.Arguments = "add 5000 deny all from any to any"; Info.WorkingDirectory = "D:\\Program\\"; System.Diagnostics.Process Proc; try { Proc = System.Diagnostics.Process.Start(Info); } catch (System.ComponentModel.Win32Exception e) { Console.WriteLine("系统找不到指定的程序文件。\r{0}", e); return; }