Copying a File

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

The syntax of this command in the Edit window is:

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

Descriptions for some of the components of this command are:

<srcfilename>
This is the name of the source file (the file copied from).

<destfilename>
This is the name of the destination file (the file copied to).

<replacemode>
This is the action to take if the destination file already exists. The two modes are overwritten and fail if the destination exists.

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

  1. Open the Edit window.

  2. Place your cursor on the File Copy command.

  3. Press F9.

More:

Sample Code for File Copy