xInfo::directory Method [AX 2012]

Retrieves the path to the directory where the Microsoft Dynamics AX client has been installed.

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.

The following example prints the path to the Bin directory for the current client installation.

{ 
    print xInfo::directory(DirectoryType::Bin); 
    pause; 
}
Show: