当前位置: 动力学知识库 > 问答 > 编程问答 >

process - viewing c# console app arguments

问题描述:

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:

Process Explorer's process dialog http://images.ask-leo.com/procexp_csrss_properties.png
(Image source: Process Explorer - A Free Powerful Replacement for Windows Task Manager)

分享给朋友:
您可能感兴趣的文章:
随机阅读: