CopyFile (GetIt)

From RAD Studio
Jump to: navigation, search

Go Up to Local GetIt Packages Actions Data Index


Copy a file to another path. See also action CopyFolder below.

Parameters

  • Parameter 1: Original file path. Macros are allowed.
  • Parameter 2: New file path. Macros are allowed.
  • Parameter 3: Boolean. Optional. Flag to force directories. If the directory does not exist, specify if GetIt should create or not the directory before copying the file.
    • 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:
CopyFile("Example.exe", "$(BDSBIN)\Example.exe");
  • Example 2:
CopyFile("Example.exe", "$(BDSBIN)\Example.exe", True);
  • Example 3:
CopyFile("Example.exe", "$(BDSBIN)\Example.exe", True, True);

See Also