MoveFolder

From RAD Studio
Jump to: navigation, search

Go Up to Local GetIt Packages Actions Data Index

Moves a folder with its content (files and subfolders) to another directory.

Parameters

  • Parameter 1: String. Original directory path to move. Macros are allowed.
  • Parameter 2: String. Target directory path. Macros are allowed.
  • Parameter 3: Boolean. Optional. Flag to save all moved file paths (of parameter 2) on the installation .dat GetIt file. If the value is True, those file paths will be deleted automatically during the uninstallation process.
    • The default value is False.
  • Parameter 4: Boolean. Optional. Flag to skip the process if failure when moving a file:
    • True: Skips the failure process when moving a file.
    • False: If failure, it shows a dialog with the option to retry the operation.
    • The default value is False.

Examples

  • Example 1:
MoveFolder("C:\Test", "C:\Users\admin\Desktop\Test", False);
  • Example 2:
MoveFolder("C:\Test", "C:\Users\admin\Desktop\Test", True);
  • Example 3:
MoveFolder("C:\Test", "C:\Users\admin\Desktop\Test", True, True);

See Also