using System;
namespace DemoConsole
{
class Program
{
static void Main(string[] args)
{
// 方法一
System.Diagnostics.Process.Start("C:\\Windows\\system32\\cmd.exe");
// 方法二
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = @"C:\\Windows\\system32\\cmd.exe";
process.StartInfo.UseShellExecute = true;
process.Start();
}
}
}