W
W
winzux2015-10-29 23:12:24
Windows
winzux, 2015-10-29 23:12:24

How to find out with which parameter the program is launched?

Hey toaster.
You've helped me before, I hope you can help me this time too.
The situation is as follows: program 1 starts program 2 with some parameter (after all, it can only pass some information to it with a parameter, right?). How to find out which one?
OS - Windows, PL - C#

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
winzux, 2015-10-30
@winzux

Thanks to those who answered. Process Monitor helped with the problem.

V
Vladimir Martyanov, 2015-10-29
@vilgeforce

No programming language or OS specified. Therefore - GetCommandLine().
PS. Command line options are far from the only IPC method. There are at least Pipe, Socket, Shared Memory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question