copyFile()

Function that copies a file to the target file path, replacing it if it already exists.

copyFile(source, target)

source

String that specifies the source file path and name.

target

String that specifies the target file path and name.

Example

This script copies the file test.txt from c:\Content into the c:\out folder.

copyFile("c:\Content\test.txt","c:\out\")