CopyFolder

From RAD Studio
Jump to: navigation, search

Go Up to Local GetIt Packages Actions Data Index

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

Parameters

  • Parameter 1: String. Original directory path to copy. Macros are allowed.
  • Parameter 2: String. Target directory path. Macros are allowed.
  • Parameter 3: Boolean. Optional. Flag to save all copied 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 copying a file:
    • True: skip the process if failure when copying a file.
    • False: If failure, it shows a dialog with the option to retry the operation.
    • The default value is False.

Examples

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


See Also