AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones de ejecutables
  • Program execution mode
  • Keywords of API "VerQueryValue" function
  • Executing the function in test mode in Windows
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
Retrieves the specified information about the version of an executable or DLL.

PHP Retrieves the specified information about the version of a module.
Ejemplo
WINDEVWEBDEV - Código ServidorReportes y ConsultasCódigo de Usuario (UMC)PHPAjax
ProgVersion is string
ProgVersion = ExeInfo(exeVersion, "Appli.exe")
IF ProgVersion <> "2.0A" THEN
Error("Invalid program version")
END
WINDEVWEBDEV - Código ServidorReportes y ConsultasCódigo de Usuario (UMC)Ajax
// Retrieve the application name (without the full path)
ProgName = ExeInfo("OriginalFilename", "App.exe")
// The executable was not renamed
ProgName = fExtractPath(ExeInfo(exeName), fFile + fExtension)
WINDEVWEBDEV - Código ServidorReportes y ConsultasCódigo de Usuario (UMC)Ajax
sExeDir is string 
IF InTestMode() = True THEN 
// In test mode, return the runtime directory
sExeDir = fCurrentDir()
ELSE
sExeDir = ExeInfo(exeDirectory)
END
Sintaxis
<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.
LinuxUniversal Windows 10 AppiPhone/iPadIOS WidgetMac CatalystPHP This constant is not available.
exeCopyrightCopyright of program
LinuxUniversal Windows 10 AppAndroidWidget Android iPhone/iPadIOS WidgetMac CatalystJavaPHP This constant is not available.
exeDescriptionDescription supplied with the program
Java Version of JRE (Java Runtime Environment) with which the current application is run.
AndroidWidget Android Android version used to run the application (for example: 4.1). It is recommended to use sysAndroidVersion.
Universal Windows 10 AppPHP This constant is not available.
Linux This constant only operates with the PC SOFT libraries or executables.
exeDirectoryDirectory of executable (without the final \ but with the ":")
AndroidWidget Android JavaPHP This constant is not available.
AndroidWidget Android iPhone/iPadIOS WidgetMac Catalyst exeLaunch
AndroidWidget Android 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.
  • AndroidWidget Android 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.
  • AndroidWidget Android 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 has been launched automatically via a "deep link".
  • Novedad versión 2024
    AndroidiPhone/iPad the constant exeQuickAction if the application was launched automatically via a quick action.
exeModeProgram mode: compiled in 32 or 64 bits, etc.
AndroidWidget Android iPhone/iPadIOS WidgetMac CatalystJavaPHP This constant is not available.
Linux This constant returns an empty string ("").
exeNameName and full path of executable.
PHP Name of runtime module or name of project if the module corresponds to a page or if <Executable name> is not specified.
AndroidWidget Android Java Name of Java archive for the application currently run.
Caution: This name does not correspond to the name of the application package.
exeVersionVersion of specified module.
PHP Version of runtime module or version of module for page generation if the module corresponds to a page or if <Executable name> is not specified.
Linux This constant only operates with the PC SOFT libraries or executables.
AndroidWidget Android Java Version number of application.
Universal Windows 10 App This constant is not available.
exeVersionWindowsFormatVersion of specified module in standard Windows format ("14.0.204.98" for example).
WEBDEV - Código ServidorLinuxUniversal Windows 10 AppAndroidWidget Android iPhone/iPadIOS WidgetMac CatalystJavaPHP This constant is not available.
<Executable name>: Optional character string
Name and full (or relative) path of executable or module used (up to 260 characters). If this parameter is not specified, the current executable is used.
PHP Name and full (or relative) path of file (up to 260 characters). If this parameter is not specified, the current module is used.
AndroidWidget Android Java This parameter must not be specified.
Universal Windows 10 App This parameter must be specified.
Observaciones
WINDEVWEBDEV - Código ServidorReportes y ConsultasUniversal Windows 10 AppCódigo de Usuario (UMC)Ajax

Program execution mode

To get the program execution mode, use the exeMode constant:
ProgMode = ExeInfo(exeMode)
The function result can correspond to:
  • "16" if the Windows program is compiled in 16 bits,
  • "32" if the Windows program is compiled in 32 bits,
  • "64" if the Windows program is compiled in 64 bits,
  • "DOS" if the program is a DOS program,
  • an empty string ("") if the program is not an executable.
WINDEVWEBDEV - Código ServidorReportes y ConsultasWindowsCódigo de Usuario (UMC)Ajax

Keywords of API "VerQueryValue" function

The <Keyword> parameter can be replaced with one of the keywords used by the API "VerQueryValue" function:
"Comments" "LegalTrademarks"
"CompanyName" "OriginalFilename"
"FileDescription" "PrivateBuild"
"FileVersion" "ProductName"
"InternalName" "ProductVersion"
"LegalCopyright" "SpecialBuild"
WINDEV

Executing the function in test mode in Windows

When ExeInfo is executed in test mode from WINDEV, the information returned about the current executable is that of "WDTst", the WINDEV test engine (located in the "Programs" subdirectory of the WINDEV installation directory).
Componente: wd290std.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
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 06 2016

Última modificación: 10/01/2024

Señalar un error o enviar una sugerencia | Ayuda local