Skip to main content

Move File

AutomatR.DefaultActivities.FileAndFolder.MoveFile

The "Move File" activity in AutomatR allows you to efficiently move a specified file from a source location to a destination location on your local drive. This activity is categorized under File activities and streamlines file management tasks, enhancing the automation workflow.

Properties

NameDescription
Input
Destination PathSpecifies the full path of the folder on your local drive where the file should be moved. String variables containing the destination folder path.
OverwriteWhen selected, overwrites files in the destination path with the file being moved. Boolean variables to indicate whether overwriting is enabled.
Source PathSpecifies the full path of the file on your local drive, including the filename, that needs to be moved. String variables containing the source file path.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. Enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Move File" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the wait time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Move File" activity onto the workflow.
  2. Configure the properties by specifying the source path, destination path, and optionally enabling overwrite if needed.
  3. Optionally, configure the delay.
  4. Execute the workflow to move the specified file to the destination folder.

Example: Consider an example where the "Move File" activity is used to move a file named "data.csv" from one folder to another:

Move File:
Source Path: "C:\DataFiles\data.csv"
Destination Path: "C:\Archive"
Overwrite: true

In this example, the activity moves the "data.csv" file from the "C:\DataFiles\" folder to the "C:\Archive\" folder. If a file with the same name exists in the destination folder, it is overwritten due to the Overwrite option being set to true.