Difference between revisions of "COPY FILE"

From Lianjapedia
Jump to: navigation, search
m (Text replace - "Recital" to "Lianja")
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Copy any type of file
 
Copy any type of file
 
  
 
==Syntax==
 
==Syntax==
 
COPY FILE <filename1> | (<expC1>) | &<memvar> [TO] <filename2> | (<expC2>) | &<memvar>
 
COPY FILE <filename1> | (<expC1>) | &<memvar> [TO] <filename2> | (<expC2>) | &<memvar>
 
  
 
==See Also==
 
==See Also==
 
[[COPY]], [[COPY STRUCTURE]], [[COPY STRUCTURE EXTENDED]], [[DELETE FILE]], [[DECRYPT]], [[ENCRYPT]], [[ERASE]], [[RENAME]], [[RUN]]
 
[[COPY]], [[COPY STRUCTURE]], [[COPY STRUCTURE EXTENDED]], [[DELETE FILE]], [[DECRYPT]], [[ENCRYPT]], [[ERASE]], [[RENAME]], [[RUN]]
 
  
 
==Description==
 
==Description==
Line 15: Line 12:
  
 
The COPY FILE command copies only the specified file, it does not copy associated files.  For example, if COPY FILE is used to copy a database table (.dbf), then only the .dbf file will be copied, not the associated multiple index file (.dbx), memo file (.dbt), dictionary file (.dbd), DES3 encryption key file (.dkf).  When using COPY FILE to copy an encrypted database table, the .dkf file must also be copied or the target table will not be accessible.
 
The COPY FILE command copies only the specified file, it does not copy associated files.  For example, if COPY FILE is used to copy a database table (.dbf), then only the .dbf file will be copied, not the associated multiple index file (.dbx), memo file (.dbt), dictionary file (.dbd), DES3 encryption key file (.dkf).  When using COPY FILE to copy an encrypted database table, the .dkf file must also be copied or the target table will not be accessible.
 
  
 
==Example==
 
==Example==
Line 22: Line 18:
 
copy file patrons.dbf to backup.dbf
 
copy file patrons.dbf to backup.dbf
 
</code>
 
</code>
 
  
 
==Products==
 
==Products==

Revision as of 11:35, 12 December 2012

Purpose

Copy any type of file

Syntax

COPY FILE <filename1> | (<expC1>) | &<memvar> [TO] <filename2> | (<expC2>) | &<memvar>

See Also

COPY, COPY STRUCTURE, COPY STRUCTURE EXTENDED, DELETE FILE, DECRYPT, ENCRYPT, ERASE, RENAME, RUN

Description

The COPY FILE command copies a file of any type <filename1> to <filename2>. The file extensions for both files must be specified. The file names can be substituted with any character expression, enclosed in round brackets or memory variable preceded by an ampersand (&), which returns a valid filename. If <filename2> already exists, it will be overwritten.

The COPY FILE command copies only the specified file, it does not copy associated files. For example, if COPY FILE is used to copy a database table (.dbf), then only the .dbf file will be copied, not the associated multiple index file (.dbx), memo file (.dbt), dictionary file (.dbd), DES3 encryption key file (.dkf). When using COPY FILE to copy an encrypted database table, the .dkf file must also be copied or the target table will not be accessible.

Example

close tables
copy file patrons.dbf to backup.dbf

Products

Lianja Server, Lianja