In Program.cs file
Change
static void Main()
to
static void Main(string[] args)
You can then access command parameters that are passed to your program.
Start program like
myprog.exe /help "hello my son" -Dance now
static void Main(string[] args)
{
foreach (string arg in args)
{
Debug.WriteLine("Arg: " + arg);
}
}
Will output:
/help
hello my son
-Dance
now
Hope you can use it.