MoveDirectory

The MoveDirectory component moves a directory and its contents to a new location.

Screenshot

Ports

The MoveDirectory component exposes the Control In, Control Out, Data In, and Data Out ports by default.

Port Description
ControlIn Must be connected to the Control Out port of one or more components.
ControlOut Can be connected to the Control In port of another component or the default end component.
Data In The MoveDirectory component exposes the following Data In ports by default:
sourceDirPath: specifies the location of the directory to move (string).
destDirectoryPath: specifies the location, including the name, of the new directory (string).
overwrite: specifies if Intellibot can overwrite an existing file, with the same name as a moved file, in the destination location (Boolean). By default, the Boolean data type value is “False”. Therefore, the existing file is not overwritten. If yoverwrite: specifies if Intellibot can overwrite an existing file, with the same name as a moved file, in the destination location (Boolean). By default, the Boolean data type value is “False”. Therefore, the existing file is not overwritten. If you want to overwrite the existing file, you can change the default Boolean value to “True”.ou want to overwrite the existing file, you can change the default Boolean value to “True”.

Properties

To edit the properties of the MoveDirectory component, in the Properties window, change the required property. You can edit the following properties.

Property Description
Search Search for the respective property.
Delay After Execution Specifies the wait time (in seconds) after the action is performed.
Delay Before Execution Specifies the wait time (in seconds) before the action is performed.

Example

Let us consider an example.

Screenshot

To move a directory:

  1. In the Toolbox, expand Utilities and then expand Directory.
  2. Drag the MoveDirectory component and drop it on the Design surface.
  3. Double-click sourceDirPath box and enter the location of the directory to move.
  4. Double-click destDirectoryPath box and enter the new location of the directory.

    Note

    You can override the existing data source for both the sourceDirPath and the destDirectoryPath Data In ports.

    To override the existing data source: * Right-click the required Data In port. * Click Override and change the data source. To learn more about overriding the data source of the data port, refer the Override section.

  5. To override the default Boolean value of the overwrite Data In port, if required:

    • Right-click the overwrite box.
    • Click Override.
      The PORT PROPERTIES dialog box is displayed.
    • In Read Data From, select Static.

    Note

    In Read Data From, you can select Connection or Variable instead of Static. To learn more about the Connection or Variable data source override options, refer the Override section.

    • In Static Value, click the drop-down arrow and select “True”.
    • Click OK.
      The Design surface displays the process flow.
  6. Connect all the control ports in the activity.

  7. In the toolbar, click Run.
    The directory and its contents are moved to the new location.