string[] args = Environment.GetCommandLineArgs();
string[] arguments = Environment.GetCommandLineArgs();
// gets you the full info of the application statring parameters
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Total Arguments: {0}", args.Length);
foreach (var arg in args)
Console.WriteLine(arg);
}
}
// run in console
C:/path/myprogram.exe "First Arg" 10 20