|
Purpose |
Runs another program | ||
|
Old name |
#define _run_prog trm_run_program | ||
|
Syntax |
int trm_run_program(const char *command, int batch, int flags); | ||
|
Parameters |
char* name |
Name of program to run | |
|
|
int batch |
If the program cannot be executed directly and this parameter is TRUE the terminal manager uses the shell to execute the command. On Windows a value of 2 will cause the ShellExecute() function to be used to execute the command. In this case command wil normally just be a document name, and the program to be executed will be selected based on the registry information. This is useful where you want to invoke the user's preferred web browser to open a web page, for example. | |
|
|
int flags |
This can contain a combination of the TR_ flags in dp4uiapi.h. Not all the flags are meaningful on all platforms. For example the TR_NOWAIT parameter is not supported on MS-DOS. | |
|
Description |
The trm_run_program() function is used to run another program. | ||
|
Return values |
Returns TRUE if the named program is successfully called, otherwise FALSE. Exit code information for the called program is not available from trm_run_program(). See also trm_run_program_ex() | ||
|
Example |
| ||