ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Executable functions
  • Name and directory of executable
  • Error management
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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: The AutoRunDelete function cancels the automatic launch of an application.
Example
// Lancement automatique de l'application "MonAppli"
// au démarrage
AutoRunAdd(alStartup, "MonAppli", fExeDir() + "\GestionClients.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.

Error management

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: wd300ce.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help