|
- Using a command line
- Using the exeActive constant
- Return value of a WINDEV executable
- Starting an application in WEBDEV server code
- Starting an application in Windows Vista (and later)
- Miscellaneous
- Application in the background: Specific case from Android 10
ExeRun (Function) In french: LanceAppli Starts the execution of a program (an executable for example) from the current application.
Syntax
Running an executable (in locking or non-locking mode) Hide the details
<Result> = ExeRun(<Program name> [, <Mode> [, <Wait for end> [, <Working directory>]]])
<Result>: Boolean - True if the program was started,
- False otherwise. ErrorInfo returns more details about the error.
<Program name>: Character string Name of program to start with its path and/or the parameters that must be passed to the program (if necessary). - If no path is specified, the program is sought in the current directory, then in the Windows directory and in the directories accessible by PATH.
- If the executable corresponds to a long name with space characters, the following syntax must be used:
<Program name> = " " " Long_name_with_spaces" " Command_line"
<Mode>: Optional integer constant Program start mode (no action on DOS programs): | | exeActive (Default value) | The program run is active, it "takes control" over the current program. | exeIconize | The program run is inactive and it is minimized.
| exeInactive | The program run is inactive: it is run while the current program keeps focus. | exeMaximize | The program run is active, it "takes control" over the current program (the execution window is maximized). | exeNoHandleInheritance | Indicates that the executable should not inherit handles from the parent (applies to ALL handles, including files). The executable is independent of the application that launched it. This constant can be combined with other application launch constants. |
<Wait for end>: Optional Boolean constant Configures the timeout before resuming the execution of the current program: | | exeDontWait (Default value) | The current program and the launched program run in parallel. | exeWait | The current program resumes its execution when the program run is over. |
<Working directory>: Optional character string Working directory of application to start. Remarks Using a command line To pass parameters in command line to the executable run, you must specify the name and full path of the executable to run.
This page is also available for…
|
|
|
|
|
|
|