Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

COPY FILE Command

Visual Studio .NET 2003

Duplicates any type of file.

COPY FILE FileName1 TO FileName2

Remarks

COPY FILE creates a duplicate of the file whose name is specified in FileName1. You can use COPY FILE to copy any type of file. The file to be copied cannot be open. You must include the extensions for both the source file name FileName1 and destination file name FileName2.

FileName1 and FileName2 can contain wildcard characters such as * and ?. For example, to create backup copies of all program files with the extension .prg in the current directory, issue COPY FILE *.PRG TO *.BAK.

If you use COPY FILE to create a backup of a table that has a memo field, a structural index or both, be sure to copy the .fpt and .cdx files as well.

See Also

DELETE FILE | RENAME | RENAME TABLE

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.