hey,
Do anybody know How to use of GetCommandLineArgs() in C# ?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Oct 31, 2011, 7:50 PM
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.
Javeed M ShaikhPosted Oct 31, 2011, 5:19 PM
String[] arguments = Environment.GetCommandLineArgs();
Console.WriteLine("Arguments: {0}", String.Join(", ", arguments));