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
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Retrieves the specified information about the version of an executable or DLL.

Example
Syntax
<Result> = ExeInfo(<Keyword> [, <Executable name>])
<Result>: Character string
  • Requested information.
  • Empty string ("") if there is no information or if the function failed.
<Keyword>: String constant
Information to retrieve:
exeCompanyName entered for the company when creating the executable.
iPhone/iPadIOS WidgetMac Catalyst This constant is not available.
exeCopyrightCopyright of program
AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst This constant is not available.
exeDescriptionDescription supplied with the program
AndroidAndroid Widget Android version used to run the application (example: 4.1). It is recommended to use sysAndroidVersion.
exeDirectoryDirectory of the executable (without the final \ but with the ":")
AndroidAndroid Widget This constant is not available.
AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst exeLaunch
AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst Mode for starting the Android or iOS application.
If this constant is specified, <Result> can correspond to:
  • empty string ("") if the application was manually started by the user.
  • AndroidAndroid Widget the exeStartup constant if the application was automatically started by the system, when starting the device.
  • the exePushNotification constant if the application was automatically started by the system further to the reception of a push notification.
  • the exeInBackground constant if the application was started in the background (detection of group of Beacons or during geolocation tracking).
  • the exeGeoTracking constant if the application was started in the background during the geolocation tracking. For more details, see Geolocation tracking.
    This constant is kept for backward compatibility from version 230050. It is equivalent to the exeInBackground constant.
  • AndroidAndroid Widget the exeDownloadComplete constant if the application was automatically launched by the system when a download previously requested by the application is completed (for example, if the application was closed during the download).
  • AndroidiPhone/iPad the exeDeepLink constant if the application was automatically launched via a "deep link".
  • AndroidiPhone/iPad the exeQuickAction constant if the application was automatically launched via a quick action.
exeModeProgram mode: compiled in 32 or 64 bits, etc.
AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst This constant is not available.
exeNameName and full path of the executable.
AndroidAndroid Widget Name of Java archive for the application currently run.
Warning: This name does not correspond to the name of the application package..
exeVersionVersion of specified module.
AndroidAndroid Widget Version number of application.
exeVersionWindowsFormatVersion of specified module in standard Windows format ("14.0.204.98" for example).
AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst This constant is not available.
<Executable name>: Optional character string
Name and full (or relative) path of the executable or module used (up to 260 characters). If this parameter is not specified, the current executable is used.
AndroidAndroid Widget This parameter must not be specified.
Remarks
Component: wd300std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Exemplo ExeInfo
//Versão desse programa
s_versao_programa is string=""
s_versao_programa=ExeInfo(exeVersion)

//Versão do programa matos_utilitarios.exe
s_versao_programa=ExeInfo(exeVersion,"D:\erpmatos\matos_utilitarios\matos_utilitarios.exe")

//Versão do programa matos_utilitarios.exe 32 ou 64
s_versao_programa=ExeInfo(exeMode,"D:\erpmatos\matos_utilitarios\matos_utilitarios.exe")

//Versão do programa matos_utilitarios.exe - pegar diretorio e nome

s_versao_programa=ExeInfo(exeName,"D:\erpmatos\matos_utilitarios\matos_utilitarios.exe")

//Versão do programa matos_utilitarios.exe - pegar nome diretorio
s_versao_programa=ExeInfo(exeDirectory,"D:\erpmatos\matos_utilitarios\matos_utilitarios.exe")

//Blog com Video e exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/06/curso-windev-funcoes-exe-windows-005.html
https://www.youtube.com/watch?v=m5wOrLUt9Ik

De matos AMARILDO
02 Jun. 2016

Last update: 09/24/2024

Send a report | Local help