FutureBasic Logo

<<    Index    >> FutureBasic 5

rename   statement



Syntax:
rename oldPath$ {to|,} newFileNameOnly$ [,refNum% [,dirID&]]

Description:
Changes the name of a file or folder from the name specified in oldPath$ to the name specified in newPath$. The oldPath$ and newPath$ parameters are used along with refNum% and dirID& to determine the location of the item to be renamed: see Appendix A - File Object Specifiers, for more information. You cannot use rename to move an item into a different directory: oldPath$ and newPath$ must both refer to items in the same directory.

See Also:
Appendix A - File Object Specifiers