Description

This function provides methods for manipulating operating system directories.

Syntax

retVal = RTI_OS_Directory( method, directory, <param1>, <param2>, <param3> )

Parameters

The function has the following parameters:

ParameterDescription
Method:

A command to be executed against a directory.

MethodDescription
CreateCreates a new directory.
DeleteDeletes a directory and all the directory's content, including all subdirectories.
RenameRenames a directory.
ExistsDetermines if a directory exists.
ChooseDisplays the choose directory dialog and returns the selected result.
GetSubDirectoriesReturns a list of all the sub-directories within a directory.
GetLogicalDrivesRetrieves a list of the logical drives attached to the current machine.
GetWindowsDirectoryReturns the path to where Windows is installed.
GetMyDocumentsReturns the path to the "My Documents" directory.
GetDesktopDirectoryReturns the path to the Windows Desktop.
GetWindowsTempPathReturns the path to the Windows temp directory.
GetOIDirectoryReturns the path to where OpenInsight is installed.
GetFilesRetrieves file names from a specified directory.
GetAttributesReturns the requested attributes of a file.
directory:The directory to be acted upon. The path may be a mapped drive or a UNC path.
param1:<Optional>Method dependent parameter.
param2:<Optional>Method dependent parameter.
param3:<Optional>Method dependent parameter.

Returns

Method dependent return value. All boolean return values are TRUE if successful and FALSE is unsuccessful.

Remarks

When returning directories, the program does NOT append a trailing backslash (\).

See Also

DIR functionDrive functionInitDir statementSetInitDirListOptions routine

  • No labels