Renames a directory.
successful = RTI_OS_Directory( "RENAME", directory, newPath ) |
| directory | newPath |
|---|---|
| The full path to the directory to rename. | The full path to the new name of the directory. |
A boolean value. If FALSE, the use of Get_Status() will return an error code and description.
This method will only act upon on the lowest level directory.
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 |