The original command line entered

I came across a situation where it would be useful to get the original command line as printed rather than broken into an args array. Just combining the arguments into one line loses extra spaces between the arguments, and in this particular case they can be significant.

Is the original non-parameterized command line available?

+7
source share
1 answer

Yes, you can do this using the CommandLine property of the Environment class.

 Environment.CommandLine 
+11
source

All Articles