ExecuteCommand

From RAD Studio
Jump to: navigation, search

Go Up to Local GetIt Packages Actions Data Index

Executes a command line command (not a general executable) inside the current product repository path.

Parameters

  • Parameter 1: Command to execute. Macros are allowed.
  • Parameter 2: Optional. Specifies if we want to hide or not the command prompt window. In other words:
    • If the value is True, the Command prompt will be hidden.
    • If the value is False, the Command prompt will be shown.
    • Default value is False.

Examples

  • Example 1: Execute command:
ExecuteCommand("echo y | sdk\tools\android.bat update sdk --no-ui --filter platform-tools,build-tools-21.1.2,android-21");
  • Example 2: Execute command:
ExecuteCommand("sdk\platform-tools\adb.exe kill-server");
  • Example 3: Execute command on a hidden window:
ExecuteCommand("sdk\platform-tools\adb.exe kill-server", "True");

See Also