Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






FileCopy statement

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.

See examples

Examples: FileCopy statement
Related topics
LotusScript Language Reference: E through H
Dir function
Kill statement
Name statement
Open statement
SetFileAttr statement




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009