Launching a third party application/executable.

I need to be able to hit a button on my UI, GO, and my application will launch a third party program. I have all the path information, I just don't know how to execute it programatically. I want to do something like:

run("c:/cygwin/cygwin");

Bonus points if you can tell me how to programatically minimize my program when the third party program is launched.
DeonicusAsked:
Who is Participating?
 
Jaime OlivaresConnect With a Mentor Software ArchitectCommented:
Simplest way is to use WinExec() function:

WinExec("c:\\cygwin\\cygwin.exe", SW_SHOW);

0
All Courses

From novice to tech pro — start learning today.