Getting the command line as a whole
-
Greetings, I really like the new command line parsing in C# and that is separates paramerters by space, it has been very useful. Of course I have a need to grab the command line as a whole as it was sent to the application and not cutup by it's spaces. Is there any way to do this in C#? The result should be the same as you get from command$ in vb. I would love to change the parameter but it's being sent from another aplication which I cannot change. Thank you in advance for any assistance. Brett
-
Greetings, I really like the new command line parsing in C# and that is separates paramerters by space, it has been very useful. Of course I have a need to grab the command line as a whole as it was sent to the application and not cutup by it's spaces. Is there any way to do this in C#? The result should be the same as you get from command$ in vb. I would love to change the parameter but it's being sent from another aplication which I cannot change. Thank you in advance for any assistance. Brett
This returns everything (including the EXE): System.Environment.CommandLine
-
This returns everything (including the EXE): System.Environment.CommandLine
That's ok, it's easily parsed out. Thank you much! Brettski