Use this function to copy a file.

[Ok :=] File.COPY(FromName, ToName)

Parameters

FromName

Type: text or code

The name of the file that you want to make a copy of, including its path. When you enter the path, keep in mind these shortcuts:

  • You can omit the drive designation, if the file is located on the current drive.

  • You can omit the full path, if the file is located in the current directory.

  • You can enter only the subdirectory name, if the file is located in a subdirectory of the current directory.

ToName

Type: text or code

The name that you want to assign to the copy, including its path. When you enter the path, keep in mind these shortcuts:

  • You can omit the drive designation, if the file is located on the current drive.

  • You can omit the full path, if the file is located in the current directory.

  • You can enter only the subdirectory name, if the file is located in a subdirectory of the current directory.

Expand imageProperty Value/Return Value

Expand imageRemarks

Expand imageExample 1

Expand imageExample 2

Expand imageSee Also