How to read command line arguments of another process in C#?

后端 未结 4 1044
南方客
南方客 2020-11-27 04:15

How can I obtain the command line arguments of another process?

Using static functions of the System.Diagnostics.Process class I can obtain a list of r

4条回答
  •  死守一世寂寞
    2020-11-27 05:16

    Are both projects yours? Could you modify the source for the process you're trying to examine to make it give you its command-line arguments, rather than trying to read them from somewhere outside of that process?

提交回复
热议问题