Difference between revisions of "RENAME"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
=RENAME=
 
 
 
 
==Class==
 
==Class==
 
Disk and File Utilities
 
Disk and File Utilities
Line 33: Line 30:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Disk and File Utilities]]
 +
[[Category:Disk and File Utilities Commands]]

Revision as of 14:43, 4 June 2009

Class

Disk and File Utilities


Purpose

Change the name of a file


Syntax

RENAME <.dbf filename1> | (<expC>)[TO] <.dbf filename2> | (<expC>)


See Also

ALIAS, COPY FILE


Description

The RENAME command renames <filename1> to <filename2>. Either filename can be substituted with an <expC>, enclosed in round brackets, which returns a valid filename. If <filename2> already exists, the original file is overwritten. If no file extension is present in the file name, then the Recital/4GL uses '.dbf'. You cannot rename a file that is open. You cannot rename a file onto another disk, the COPY FILE command can be used for this purpose.


Example

rename patrons.dbf to patron.dbf
rename events.ndx event.ndx


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer