Returns the name of the current working directory.
sName = SYS_GetDir ( )
|sName||The name of the directory. STRING.|
SYS_GetDir returns the name of the current working directory of the agent that was used for the last call. For example, if you call NotepadCA.SetActive(), which uses the Classic Agent, and then call SYS_GetDir(), it returns the working directory of the Classic Agent.
SYS_GetDir returns a valid path on all GUIs, including standard syntax elements like path separators, for example a leading backslash (\) on Windows.
SYS_GetDir is executed by the agent process, not the Silk Test Classic process. To affect the host process, use the function with the hHost notation or machine handle operator. For more information about the machine handle operator and hHost, see Machine handle operator.
STRING sCurrentDir sCurrentDir = SYS_GetDir ()