Tag Archives: command line

Get command line arguments in C#

One method to do this is to override the program’s Main method and give it a parameter that is a string array as in the following code. static void Main(string[] args) { foreach (string arg in args) { lstArguments.Items.Add(arg); } … Continue reading

Posted in system | Tagged , , , , , , , , , | 1 Comment