hey,
Do anybody know How to use of GetCommandLineArgs() in C# ?
GetCommandLineArgs()
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 31, 2011, 1:19 PM EDT
String[] arguments = Environment.GetCommandLineArgs();
Console.WriteLine("Arguments: {0}", String.Join(", ", arguments));
VulpesRank #55 · 29.2K reputationPosted Oct 31, 2011, 3:50 PM EDT
This differs from the array passed by the OS as an argument to the Main() method where the first element is the first command line argument and so on.