In some cases, the application
may need some initial value(s) for the proceeding. In that situation, the command line argument feature is helpful. So, the entry point of the application can
access such values, if any
Example:
static void Main(string[] args){
for (int i = 0; i < args.Length; i++){
Console.Write(i.ToString
());
}}
Execute the program:
PgmName.exe name1 name2 name3
Then the output will
be:
name1
name2
name3