Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have an exe application (don't know in what language is writen) and I want to start another exe(made by me in c#) when the first exe is started.
I don't want to use Process.Start() in my exe because the first exe shouldn't be started alone. Any solution?
Posted

1 solution

I assume you can't modify the first exe, which restricts what you can do.

My solution? I would use Process.Start in my exe after checking to see if the other is running. If it isn't, run it. If it is, all ok.
Or, write a third console - but - no - display application which starts them both in the right order and then exits.

There is no other reliable solution to running two programs when you start one, unless you can edit the source of them both.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900