开发者

Original command line as typed

开发者 https://www.devze.com 2023-02-19 07:20 出处:网络
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开发者_StackOverflow array. Simply joining the args into one string l

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开发者_StackOverflow 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
0

精彩评论

暂无评论...
验证码 换一张
取 消