You should first look at the args.Length for example and check if there are any arguments. You can also use the examples below to traverse all arguments.
In the main routine:
foreach(string arg in args)
{
Console.WriteLine(arg);
}
Or outside the main routine:
foreach (string arg in Environment.GetCommandLineArgs())
{
Console.WriteLine(arg);
}
Good luck!