I have this Windows software program (let's call it appA), which from time to time starts another program (appB.exe) to make some calculations. AppB is just a console application, so I assume that appA collects its information from appB by reading stdout. (AppA is a commercial software package, and I have no info on how this is done)
My problem is that I, in my C# application, also start an instant of appB.exe. When I do this, it seems like appA mixes up the two instances of appB, so that the connection between appA and appB is no longer working. Is it possible for me in my C# application to start appB, in some way or another, so that it is not confused with the instant of appB already running. I know this can be a tricky question to answer, as I do not know what mechanism appA uses to recognize appB once it has started. I have tried something as simple as making a copy of and renaming the appB.exe but that did not help. Any suggestions?