Difference between revisions of "RENAME"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) (→See Also) |
||
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
==See Also== | ==See Also== | ||
− | [[COPY FILE]] | + | [[COPY FILE]], [[COPY TABLE]], [[RENAME TABLE]] |
==Description== | ==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 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 Lianja 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== | ==Example== |
Latest revision as of 12:26, 20 November 2023
Contents
Purpose
Change the name of a file
Syntax
RENAME <.dbf filename1> | (<expC>) [TO] <.dbf filename2> | (<expC>)
See Also
COPY FILE, COPY TABLE, RENAME TABLE
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 Lianja 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