Product Logo

CNS Image

Import, edit, and export Images in the FileMaker environment

Functions

CNSImage_File_Copy

NameCNSImage_File_Copy
Description

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

Return TypeText
FormatCNSImage_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.)

Examples
Example 1

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

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

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

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

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.

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