开发者

viewing c# console app arguments

开发者 https://www.devze.com 2022-12-13 07:18 出处:网络
I have a console app (written in c#) that is 开发者_开发问答passed various arguments from the command line by an external application (an InstallShield exe).Without adding code into the console app or

I have a console app (written in c#) that is 开发者_开发问答passed various arguments from the command line by an external application (an InstallShield exe). Without adding code into the console app or InstallShield exe to log the value of arguments is there any way to see the value of the arguments passed to the console app? (perhaps via some sort of process monitoring app)

Any suggestions would be very helpful!

Cheers

Tim


The excellent and free Sysinternals Process Explorer will do what you want. Highlight the process, right-click, choose Properties, and on the dialog that opens you'll see a "Command line:" section that lists the arguments passed to your executable:

viewing c# console app arguments


(source: ask-leo.com)

(Image source: Process Explorer - A Free Powerful Replacement for Windows Task Manager)

0

精彩评论

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