capture arguments from command line
using System;
//command_param.cs
public class test_com_para
{
public static void Main(string[] str)
{
Console.WriteLine("You entered {0} command line arguments:", str.Length );
for (int i=0; i < str.Length; i++)
{
Console.WriteLine("-----------------");
Console.WriteLine("Argument {0}", i);
Console.WriteLine("-----------------");
Console.WriteLine("{0}", str[i]);

}
}
}
 
The screen shot shown below, displays the arguments entered along the command line with a space