更新时间:2022-09-28 12:59:37
首先添加命名空间:
using System.Diagnostics;
namespace 控制台
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("please input :1-千千静听,2-IE,3-计算器");
int cmd = Console.Read();
if (cmd == 49)
Process.Start("TTPlayer.exe");
else if (cmd == 50)
Process.Start("IEXPLORE.EXE");
else if (cmd == 51 )
Process.Start("Calc.exe");
Console.ReadLine();
}
}
}
本文转自 陈敬(Cathy) 博客园博客,原文链接:http://www.cnblogs.com/janes/archive/2008/07/23/1249636.html,如需转载请自行联系原作者