Retrieves the directory where specified types of Silk Performer files are located. Do not use GetDirectory to locate data files that are referenced by the project. Use the function GetDataFilePath instead.
Kernel.bdh
GetDirectory( in  nDirectory : number,
              out sDir       : string,
              in  nDirSize   : number optional );
               	 | Parameter | Description | 
|---|---|
| nDirectory | Specifies which directory setting to retrieve. This parameter can be one of the following flags: 
 注: Agent computers create temporary directories for 
                              					 load test execution. Only the parameters DIRECTORY_HOME, DIRECTORY_SOURCE, and DIRECTORY_INCLUDE will return the same results from an agent as
                              from the controller computer.
                              				  
                            | 
| sDir | String receiving the directory. | 
| nDirSize | Number of characters to copy into sDir. (optional, default is STRING_COMPLETE) | 
dcltrans
  transaction TMain
  var
    sDirectory: string;
  begin
    GetDirectory(DIRECTORY_HOME, sDirectory);
    writeln(sDirectory),
  end TMain;