Description
Renames a directory.
Syntax
successful = RTI_OS_Directory( "RENAME", directory, newPath )
Parameters
directory | newPath |
---|---|
The full path to the directory to rename. | The full path to the new name of the directory. |
Return Value
A boolean value. If FALSE, the use of Get_Status() will return an error code and description.
Remarks
This method will only act upon on the lowest level directory.
Example 1
declare function RTI_OS_Directory // Rename a directory called c:\revsoft\mydir to c:\revsoft\newdir directory = "c:\revsoft\mydir" newname = "c:\revsoft\newdir" successful = RTI_OS_directory( "RENAME", directory, newname ) if not(successful) then error = Get_Status(errCodes) if error then call FsMsg() end end