Ako je u pitanju Windows onda....
ShellExecute()-Izvod iz Helpa:
==============================
The ShellExecute function opens or prints a specified file. The file can be an executable file or a document file.
....
HINSTANCE ShellExecute(
HWND hwnd, // handle to parent window
LPCTSTR lpOperation, // pointer to string that specifies operation to perform
LPCTSTR lpFile, // pointer to filename or folder name string
LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters
LPCTSTR lpDirectory, // pointer to string that specifies default directory
INT nShowCmd // whether file is shown when opened
);
Evo ti par primera kako ih ja koristim (mozda ima i bolji nacin):
1. OTRVARANJE neke Help fajle sa InternetExplorerom:
//....
char HelpFile[MAX_PATH];
// pa negde u programu imas na primer:
strcpy(HelpFile,"c:\\My_dir\\My_Help.HTML");
//....
ShellExecute(NULL, "open", "IEXPLORE.EXE", HelpFile,NULL,SW_SHOWNORMAL);
2. Ili ako ces pozvati neki svoj program bez prosledjivanja parametara:
//....
char My_prog_exe[MAX_PATH];
// pa negde u programu imas na primer:
strcpy(My_prog_exe,"c:\\My_dir_exe\\My_prog_x.exe");
//....
ShellExecute(hwnd,NULL, My_prog_exe, NULL, NULL, SW_SHOWNORMAL);