//Process[] pro= Process.GetProcesses(); //foreach (var item in pro) //{ // Console.WriteLine(item); // item.Kill(); //} //Console.ReadKey(); //Process.Start("notepad"); //Process.Start("calc"); //Process.Start("mspaint"); //Process.Start("2345Explorer", "www.baidu.com"); // 实例化进程 Process pro = new Process(); //实例化进程文件 ProcessStartInfo pi = new ProcessStartInfo(@"C:Documents and SettingsAdministrator桌面1.txt"); pro.StartInfo = pi; //制定进程 pro.Start(); Console.ReadKey();