Return to Snippet

Revision: 40649
at February 4, 2011 20:17 by christianjunk

Initial Code
string[] args = Environment.GetCommandLineArgs();

foreach(string arg in args){
// Your Things

Initial URL

Initial Description
It can use this in any place of its application, not only main () like in an application of console is limited its use in the method.

Initial Title
How to get command line arguments for windows application in c#

Initial Tags

Initial Language