Environment.GetCommandLineArgs()
using System; class MainClass { public static void Main(string[] args) { Console.WriteLine(Environment.CommandLine); foreach (string s in Environment.GetCommandLineArgs()) { Console.WriteLine(s); } } }