This renames a file, keeping it in the same folder (or at the root of the volume).
"filename" is a full pathname, and "newName" is a replacement for the last component of that path.
----
example:
put RenameFile("HD:Telecom:capture","session") into err
This will produce a file called "HD:Telecom:session" if it succeeds. A value of 0 is returned on success, a negative number for an Operating System error, and 1 for a parameter error.