I've run into a situation where it would be helpful to get the original command line as typed, rather than broken up into the args array. Simply joining the args into one string loses extra spaces between the arguments, and in this particular case they could be significant.
Is the original unparsed command line available anywhere?
Yes, you can do this through the CommandLine property of the Environment
class.
Environment.CommandLine
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With