2012年10月30日
摘要: C#文件中GetCommandLineArgs()解释:该函数使用Environment类方法获取命令行参数;使用该函数时 程序名被视为第1参数,命令行中的其他值依次被视为第2 3...个参数.通过一个例子来讲解文件和该函数的用法:using System;using System.IO;class myApp{ public static void Main() { string [] CLA = Enviroment.GetCommandLineArgs(); //获取命令 第一个为文件名 if(CLA.Length<3) //判断获取的字符数组个数是否小于3 { Console.W 阅读全文
posted @ 2012-10-30 17:18 ltyfat 阅读(682) 评论(0) 推荐(0) 编辑