CNS Image

Import, edit, and export Images in the FileMaker environment

<- Back to CNS Image function list

CNSImage_File_Copy

Description

You can use this function to copy a file to a new location.

Return Type
Text
Format
CNSImage_File_Copy ( Source ; Destination )
Required Parameters
  • Source

    The Path and File Name of the File you want to Copy.

  • Destination

    The Path to the Folder where you want the Copy. (You can optionally specify a File Name to Rename the File.)

Related Items
CNSImage_Export, CNSImage_File_Delete, CNSImage_File_Exists, CNSImage_File_GetPath, CNSImage_File_SelectFileWithDialog, CNSImage_File_SelectFolderWithDialog, CNSImage_Import, Reference: Paths
Examples

Example 1

Code:

CNSImage_File_Copy("/source/copy.txt";"/destination/")

Result:

Copies the file "copy.txt" from the "source" folder to the "destination" folder on Mac.

Example 2

Code:

CNSImage_File_Copy("c:\source\copy.jpg";"c:\destination\copied.jpg")

Result:

Copies the file "copy.jpg" from the "source" folder to the "destination" folder and renames the file "copied.jpg" on Windows.

Example 3

Code:

CNSImage_File_Copy("/Users/John/Documents/boat.jpg";"/Volumes/FileServer/boat.jpg")

Result:

Copies the file "boat.jpg" from the "Documents" folder to the "FileServer" network share on Mac. The network share must be mounted prior to calling this function, as it is unable to mount a share.