Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The DexPathGetForApp() function returns the path of various components of the current installation, such as the runtime engine or launch file.
Syntax
DexPathGetForApp(option)
Parameters
• option - An integer indicating which path to return:
Value |
Description |
---|---|
1 |
The path of the folder containing the runtime engine (Dynamics.exe). |
2 |
The path of the folder containing the launch file used to start the application. |
3 |
The path to the "Data" folder for the installation. Files writable by the user are stored in this folder. |
4 |
The path of the user-specific Dex.ini file currently being used. If per-user defaults files are not active, the path to the global Dex.ini is returned. |
5 |
The path of the launch file (.set file) currently being used. |
6 |
The path to the global Dex.ini file, found in the "Data" folder for the installation. |
Return value
A string containing the path requested in native format.
Examples
The following C# example retrieves the location for the runtime engine in the Microsoft Dynamics GP installation.
textBoxPath.Text = Dynamics.Forms.SyVisualStudioHelper.Functions.DexPathGetForApp .Invoke(1);
The following Visual Basic example retrieves the location for the "Data" folder in the Microsoft Dynamics GP installation.
TextBoxPath.Text = Dynamics.Forms.SyVisualStudioHelper.Functions.DexPathGetForApp _ .Invoke(1)