Click to See Complete Forum and Search --> : Executing a program from another program??


Hochgebe
June 11th, 1999, 04:43 PM
How can I execute a known file (i.e. c:\programs\myprogram.exe) from an mfc application. I have written a software auditing program, but would like to add a feature to execute a program from a list (to more easily identify the software.) Any help would be greatly appreciated!!!!!

///////////////////////////////////////////////////////
Good things come to those who wait...
But they come used by the impatient....
///////////////////////////////////////////////////////

Jeeves
June 11th, 1999, 05:06 PM
The ShellExecute API launches other applications...


::ShellExecute(m_hWnd, "open", "C:\\SomeProgram.exe", NULL, NULL, SW_SHOW);