With WinExec () function, which should be # include <windows.h>, such as open a IE: WinExec ("C: \ \ Program Files \ \ Internet Explorer \ \ IEXPLORE.EXE", 1); In fact, WinExec function's first variable is the command line string.To use the API ah WinExec this function Here is an example:
Prototype:
Code:
UINT WinExec (
LPCSTR lpCmdLine, / / process the path
UINT uCmdShow / / display (SW_SHOW) or hidden (SW_HIDE)
);
# Include <windows.h>
int main ()
{
WinExec ("c: \ \ application.exe", SW_SHOW);
return 0;
}
Check and reply.
Bookmarks