I have to launch an exe from other application.There is code in the internet to do it.
I wanted to discuss how the Application get the path of the other exe to launch, Since path of the exe can be any.
Is Storing in the registry or config is the option??
What an application should do if the exe already running.
Please add possible problem one may face whiling a launching an exe from other application
I am using c++ on VS 2008.
You have two choices for launching EXE files: ShellExecuteEx(), and CreateProcess().
Each behaves a bit different, check them out on MSDN.
As for the varying path, the registry may be a good alternative.