FileCopy statement (LotusScript® Language)
Makes a copy of a file.
Syntax
FileCopy source , destination
Elements
source
A string expression containing the name of the file you want to copy. The expression can optionally include a path.
destination
A string expression containing the name to be given to the copy. The expression can optionally include a path.
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.