xInfo::directory Method
Retrieves the path to the directory where the Microsoft Dynamics AX client has been installed.
Syntax
client server public static str directory(DirectoryType type)
Run On
ClientOrServer
Parameters
- type
Type: DirectoryType Enumeration
A DirectoryType enumeration value that indicates one of the subfolders of the client installation.
Return Value
Type: str
A string that contains the path to the directory that is specified by the DirectoryType parameter.
Examples
The following example prints the path to the Bin directory for the current client installation.
{
print xInfo::directory(DirectoryType::Bin);
pause;
}