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:
Parameter | Description |
---|
Method: | A command to be executed against a directory. Method | Description |
---|
Create | Creates a new directory. | Delete | Deletes a directory and all the directory's content, including all subdirectories. | Rename | Renames a directory. | Exists | Determines if a directory exists. | Choose | Displays the choose directory dialog and returns the selected result. | GetSubDirectories | Returns a list of all the sub-directories within a directory. | GetLogicalDrives | Retrieves a list of the logical drives attached to the current machine. | GetWindowsDirectory | Returns the path to where Windows is installed. | GetMyDocuments | Returns the path to the "My Documents" directory. | GetDesktopDirectory | Returns the path to the Windows Desktop. | GetWindowsTempPath | Returns the path to the Windows temp directory. | GetOIDirectory | Returns the path to where OpenInsight is installed. | GetFiles | Retrieves file names from a specified directory. | GetAttributes | Returns 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 function, Drive function, InitDir statement, SetInitDirListOptions routine