Returns a string array containing the command-line arguments for the current process.
using System; class Sample { public static void Main() { String[] arguments = Environment.GetCommandLineArgs(); Console.WriteLine("GetCommandLineArgs: {0}", String.Join(", ", arguments)); } }