コマンドライン引数のとり方

static void Main(string[] args)
{
    for (int i = 0; i < args.Length; ++i)
    {
      Console.Write("{0}番目のコマンドライン引数は{1}です。\n", i, args[i]);
    }
}

参考
http://ufcpp.net/study/csharp/st_command.html