If you are using a console application, the main method woould have a string array as a parameter that would contain all the parameters.
E.g. The code below displays all the command line arguments.
class TestClass
{
static void Main(string[] args)
{
System.Console.WriteLine(args.Length);
}
}