BaseContext :: executeProgramWait - Run executable binary and wait for termination
The function calls an executable file at location passed in sProgramPath in the current process. Control is returned to the program, when execution of the called program has terminated.
Before calling the process, options defined in path and parameters are replaced by current option values. Options have to be enclosed in %..%.
When the context handle does not refer to a valid context instance the function throws an exception.
Implementation overview
- Calling program with parameter list
BaseContext :: executeProgramWait ( sProgramPath, sParmList ) - Calling program with parameters
BaseContext :: executeProgramWait ( sProgramPath, sParameter1, sParameter2, sParameter3, sParameter4, sParameter5 )
Implementation details
-
Calling program with parameter list
BaseContext  :: executeProgramWait ( odaba::String &sProgramPath, odaba::StringList &sParmList )
Parameters are passed to the program via StringList (sParamList). Depending on the operating system, the string list is converted to a parameter string (Windows). Parameters containing spaces will be quoted with double quotes, when not yet quoted.
- sProgramPath
- Program path
The program path refers to an executable file. The path contains the folder hierarchy and the file name (including extension).
- sParmList
- Parameter list
Parameters passed in a string list. In some cases, parameters containing spaces have to be quoted.
to list
- sProgramPath
- Program path
-
Calling program with parameters
BaseContext  :: executeProgramWait ( odaba::String &sProgramPath, odaba::String &sParameter1, odaba::String &sParameter2, odaba::String &sParameter3, odaba::String &sParameter4, odaba::String &sParameter5 )
- sProgramPath
- Program path
The program path refers to an executable file. The path contains the folder hierarchy and the file name (including extension).
- sParameter1 - String parameter
- sParameter2 - String parameter
- sParameter3 - String parameter
- sParameter4 - String parameter
- sParameter5 - String parameter
to list
- sProgramPath
- Program path