LOTUSSCRIPT LANGUAGE


FileCopy statement
Example

Makes a copy of a file.

Syntax

FileCopy source , destination

Elements

source


destination
Usage

The file being copied must not be open.

The source and destination strings cannot include wildcard characters.

If destination names a file that already exists, the copy replaces the existing file with that name. To prevent this, you can use the Dir function to determine whether a file with the name destination already exists. Or, use the SetFileAttr statement to set the read-only attribute for the file.

Example
See Also