Rename a file or directory. Status is in OS-ERROR
. Can also be used to move files (or move and rename).
OS-RENAME oldname newname
Rename /tmp/old-name
to /tmp/new-name
:
OS-RENAME VALUE("/tmp/old-name") VALUE("/tmp/new-name").
Move file c:\temp\old.txt
to c:\new-dir\old.txt
:
OS-RENAME VALUE("c:\temp\old.txt") VALUE("c:\new-dir\old.txt").