Move File

 

Updated: May 13, 2016

Applies To: System Center 2012 SP1 - Orchestrator, System Center 2012 - Orchestrator, System Center 2012 R2 Orchestrator

The Move File activity moves a file from one directory to another. You can move files to network shares that are available using UNC paths. You can also move files from a local or publicly available network folder, such as an FTP location, to an internal folder.

Before you configure the Move File activity, you need to determine the following:

  • The files you are moving.

  • The destination path where you will move the files.

Use the following information to configure the Move File activity.

Details Tab

SettingsConfiguration Instructions
FileType the path and name of the file that you want to move. You can use the * and ? wildcards to specify the filename and path. These wildcards behave the same way as in the Windows Command Prompt.
Include sub-foldersSelect this option to move any files within the sub-folders of the path you have specified that match the filename that you have specified.
FolderType the path of the folder where you want the files to be moved to.
If the destination existsSelect the action that you want to take if a file with the same name already exists in the destination folder:

 Overwrite: Select this option to overwrite the existing file with the file that is being moved.

 Fail: Select this option to cause the Move File activity to fail if the filename already exists.

 Create a file with a unique name: Select this option to append a value to the filename to create a unique name that does not conflict with an existing name.

Advanced Tab

SettingsConfiguration Instructions
File ageSelect Is less than or Is more than from the drop-down list to move the files that are older or newer, respectively, than the number of days that you specify.
daysEnter the number of days that you will use with the File age measure.
Date of transferSet the file date at the destination to the date when it was copied to the folder.
Same as originalSet the date of the file at the destination to the date of the original file.

Published Data

The following table lists the published data items.

ItemDescription
Origin folderThe path of the base folder where the file was moved from.
Destination folderThe destination folder where the file was moved to.
Total number of files to be transferredThe number of files that matched the file that you specified.
Number of successful file operationsThe number of files that were successfully moved.
Number of failed file operationsThe number of files that failed to move.
File operation statusDetermines whether the move operation succeeded or failed.
File pathThe path of the file that was moved.
File nameThe name of the file that was moved.
Name and path of the file relative to the origin folderThe relative path of the file starting from the origin folder.
If destination existsThe option that was selected to handle the operation if the destination file already exists.
File age date optionThe option that was selected to evaluate the file age.
File age daysThe number of days that was provided to evaluate the file age.
Modified date optionThe option that was selected for the date to be assigned to the destination file.
Name and path of the destination fileThe name and path that the file was moved to.
Name and path of the origin fileThe name and path that the file was moved from.
Include sub-foldersIndicates whether the Include sub-folders check box was selected.
Show: