DriveWorks Pro 16: Copy File [send feedback...]

Copy File

The Copy file task will copy or move an existing file to a new location.

Properties

Property NameDescription
SourceThe path to source file.
DestinationThe path to destination file.
MoveTRUE to move the file, FALSE to copy it.
OverwriteTRUE to overwrite the destination file if it already exists, FALSE to leave it alone.
TitleChanges the Title (not the name) of the task.
If the new location does not exist the task will create the folder structure as applied to the Destination property (if valid).

Examples

The properties for this task are static by default see How To: Change A Static Property To A Dynamic Property to build rules for the property values.

Property nameExample ruleExample resultMeaning
Source"[Machine Name]\Content\" & DWVariableOldFileName & ".txt"[Machine Name]\Content\OldFile.txtOldFile.txt is the file to be copied.
Destination"[Machine Name]\Generated\" & DWVariableNewFileName & ".txt"[Machine Name]\Generated\NewFile.txtThe source file will be copied with the new name NewFile.txt
MoveMoveFileReturnTrueThe file will be moved to the new designated location.
OverwriteOverwriteFileReturnTrueThe file will overwrite the existing file (with the same name).

Table of Contents