c#之线程
//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 Settings\Administrator\桌面\1.txt"); pro.StartInfo = pi; //制定进程 pro.Start(); Console.ReadKey();