## Copying a File

The Insert | File I/O Command | File Copy menu option inserts a command into the Edit window which will cause a file copy operation to occur upon execution.

The syntax of this command in the Edit window is:

File/Copy,<srcfilename>,<destfilename>,<replacemode>

<srcfilename> | This is the name of the source file (file copied from)
<destfilename> | This is the name of the destination file (file copied to)
<replacemode> | This is the action to take if the destination file already exists. The two modes are overwrite and fail if destination exists.

To access the dialog box associated with this File I / O command:

1. Open the Edit window.

2. Placing your cursor on the File Copy command.

3. Press F9.

More:

Sample Code for File Copy