Path_GetForApp()

Examples


The Path_GetForApp() function returns the generic path of various components of the current installation, such as the runtime engine or launch file.

Syntax

Path_GetForApp(option)

Parameters

option – An integer indicating which path to return:

[spacer]

Constant

Value

Description

PATH_EXEFOLDER

1

The path of the folder containing the runtime engine (Dynamics.exe).

PATH_SETFOLDER

2

In test mode, the path of the folder containing the application dictionary currently in use. With the runtime engine, the path of the folder containing the launch file used to start the application.

PATH_DATAFOLDER

3

The path to the “Data” folder for the installation. Files writable by the user are stored in this folder.

PATH_DEXINIFILE

4

The path of the Dex.ini file currently being used.

PATH_SETFILE

5

The path of the launch file (.set file) currently being used.


Return value

A string containing the path requested in generic format.

Comments

The path that’s returned is in a generic format. Generic pathnames use a colon (:) before and after DOS drive letters. The characters that separate folders and directories are forward slashes (/).

[spacer]

Native pathname

Generic pathname

C:\DEX\TOOLS\

:C:DEX/TOOLS/



Documentation Feedback