Posts

Showing posts with the label Command Line Arguments

Passing Command Line Arguments Using VS 2010

Image
Command line arguments are helpful to provide those parameters without exposing them to everybody. Even with modern UI, we often need a way to start our programs with specific parameters. Command line arguments are helpful to provide those parameters without exposing them to everybody. When developing with .NET and C# you can get the command line arguments from your Main(string[] Args) function. Args is in fact an array containing all the strings separated by spaces entered in the command line. Suppose we have the application which accepts some command line parameters to do some operations.We know how to pass the parameters from command prompt.I have that also some sample here. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2010 {      class CommandLineArgument     {           static void Ma...