RenameFile Rename a file. Short Name ctRENFIL() Type Low-level function Declaration COUNT RenameFile(COUNT filno, pTEXT newname) Description RenameFile() renames a file that has been opened exclusively, meaning no other processes have the file open. RenameFile() is particularly useful for allowing a client application to rename a file controlled by a c-tree Server. A superfile host cannot have any members open when it is renamed. A superfile member must have a correct matching host name in the newname string. For example, if the file being renamed is myhost!oldname, the newname string must be of the form “myhost!newname”. A file opened as part of a mirrored pair cannot be renamed. Note: filno corresponds to the file to rename, and which must have been open exclusively. When renaming transaction logged files, it would be wise to include SKIP_MISSING_FILES YES in the c-tree Server configuration file since the log may contain references to the old file, which will not appear present during recovery. Return
See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values. |
||||||||||||||||||||||||||||||