|
|
|
|
- Name and directory of executable
- Managing errors
AutoRunAdd (Function) In french: AutoLanceAjoute Allows you to automatically start a WINDEV application when a specific event occurs. The application to be run can correspond to the current application. Remark: AutoRunDelete is used to cancel the automatic run of an application.
// Automatically run the "MyApp" application // at startup AutoRunAdd(alStartup, "MyApp", fExeDir() + "\CustomerManagement.exe")
Syntax
AutoRunAdd(<Run event> , <Application> , <Executable>)
<Run event>: Integer constant Event that triggers the application run: | | alStartup | Run the application when the PC is started. |
<Application>: Character string Name of the application to be run. This name will be used in AutoRunDelete. <Executable>: Character string Name and full path of the executable of the application to be run. This executable is on the current computer. This parameter can contain the command line that will be passed to the executable. Remarks Name and directory of executable - ExeInfo associated with the exeName constant returns the full executable name for the current application.
- fExeDir returns the directory containing the executable of current application.
Managing errors Caution: AutoRunAdd returns no error code. To determine if this function generated an error, use the ErrorOccurred variable. If an error occurs, you can get more details on the error with ErrorInfo. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|