/// <summary>
/// 在cmd窗体内执行如下:
/// CtrlOrderDrierApp.exe -f -t
/// 返回:
/// FOO
/// Show Table
/// </summary>
/// <param name="args"></param>
static void Main(string[] args)
{
if (args.Length > 0)
{
IEnumerator arrIEnum = args.GetEnumerator();
while (arrIEnum.MoveNext())
{
string item = arrIEnum.Current.ToString();
if (item.Equals("-t"))
{
Console.WriteLine("Show Table");
}
else if (item.Equals("-c"))
{
Console.WriteLine("Copy Objects");
}
else if (item.Equals("-d"))
{
Console.WriteLine("Delete Data");
}
else
Console.WriteLine("Order is in violation!!!");
}
}
Console.ReadKey();
}
这个有点儿像在Linux、Unix中执行指令操作