| Function group | Execute on client | Platform(s) |
| FileOps | NO | All |
FileOps.$rename(cOldname,cNewname)
Renames the file or folder named cOldname to cNewname.
The function returns an error code, or zero if successful: see the FileOps function error codes.
DoFileOps.$rename('c:\omnis\libs','c:\omnis\examples')ReturnslError# renames the 'libs' folder to 'examples'
DoFileOps.$changeworkingdir('c:\omnis\datafile\odbc')ReturnslError
DoFileOps.$rename('odbc.txt','readme.txt')ReturnslError# switches to the 'c:\omnis\datafile\odbc' folder and renames 'odbc.txt' to 'readme.txt'