Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>rename</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
RENAME


Syntax:     RENAME <file1>.<ext1>/(<expC1>) TO
            <file2>.<ext2>/(<expC2>

Purpose:    To rename a file to a new name.

Arguments:  <file1> is the name of the file to rename.  The filename
            must include an extension if the file has one and may
            optionally be preceded by a drive and/or path.

            <file2> is the new filename including extension.

Usage:      Note that SET DEFAULT and SET PATH do not affect RENAME.
            The file is renamed only if found in the current DOS
            directory or in the directory explicitly specified as part
            of the filename.

Library:    CLIPPER.LIB

            Warning: The file to be RENAMEd must be CLOSEd before
            executing this command.  Note that when a database file is
            RENAMEd, the associated memo (.dbt) file must also be
            RENAMEd.


----------------------------------- Example --------------------------------

   ? FILE("Sales.dbf")               && Result: .T.
   ? FILE("Oldsales.dbf")            && Result: .F.

   RENAME Sales.dbf TO Oldsales.dbf

   ? FILE("Oldsales.dbf")            && Result: .T.



See Also: COPY FILE ERASE RUN/! CURDIR() FILE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson