The Copy file task will copy or move an existing file to a new location.
Property Name | Description |
---|---|
Source | The path to source file. |
Destination | The path to destination file. |
Move | TRUE to move the file, FALSE to copy it. |
Overwrite | TRUE to overwrite the destination file if it already exists, FALSE to leave it alone. |
Title | Changes the Title (not the name) of the task. |
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 name | Example rule | Example result | Meaning |
---|---|---|---|
Source | "[Machine Name]\Content\" & DWVariableOldFileName & ".txt" | [Machine Name]\Content\OldFile.txt | OldFile.txt is the file to be copied. |
Destination | "[Machine Name]\Generated\" & DWVariableNewFileName & ".txt" | [Machine Name]\Generated\NewFile.txt | The source file will be copied with the new name NewFile.txt |
Move | MoveFileReturn | True | The file will be moved to the new designated location. |
Overwrite | OverwriteFileReturn | True | The file will overwrite the existing file (with the same name). |
This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.
Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.
This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.
The status output navigation is as follows:
Success
Success with Warnings
Failed (one of the following occurred)