copyFile()

Copies a file from one directory to another on the agent machine. If the target file exists, you must check a box to overwrite an existing file. Be sure to keep in mind folder syntax when running this STEP across different operating systems, for example, c:\temp\tempfile.txt for Windows and /tmp/tempfile.txt for OS X and Linux.

Operating systems supported: Windows, OS X, Linux

Example

copyFile("%appdata%\Microsoft\Templates\#template#", "e:\templates_archive\#template#", true, "All Operating Systems", "Halt on Fails")