MoveFile

From RAD Studio
Jump to: navigation, search

Go Up to Local GetIt Packages Actions Data Index

Moves a file to another path.

If the file is in use, GetIt shows a message advising the user that the file is being used by another program and that it must close it to proceed the operation.

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, then it specifies 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 moving a file:
    • True: skip the process if failure 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:
MoveFile("Example.exe", "$(BDSBIN)\Example.exe");
  • Example 2:
MoveFile("Example.exe", "$(BDSBIN)\Example.exe", True);
  • Example 3:
MoveFile("Example.exe", "$(BDSBIN)\Example.exe", True, True);

See Also