ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Executable functions
  • Name and directory of executable
  • Managing errors
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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.
Example
// 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:
alStartupRun 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
Component: wd290ce.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help