BotVelocity Command Prompt Activities

Summary

The Bot Velocity Command Prompt Activities package provides five specialized activities for executing CMD commands and retrieving command prompt console output within UiPath.

Overview

Execute Single Command Activity: Executes a single command in a new CMD session and retrieves the console output. The activity accepts inputs for:

  • Command (String)
  • Start Directory (String)
  • Single Line Output (Boolean) - When True, returns only specific command output; when False, returns entire console output. The activity outputs the Command Output as a string.

Open Command Prompt Activity: Opens a new CMD session and returns the session process for use in subsequent activities. It accepts a Start Directory input parameter and outputs the CMD Process, which is essential for other activities in the package.

Execute Command Activity: Executes commands within an existing CMD session, ideal for running multiple commands sequentially. It requires:

  • CMD Process (from Open Command Prompt)
  • Command (String) to execute

Close Command Activity: Cleanly terminates the command prompt session after command execution. It requires the CMD Process as input to ensure proper process closure.

Get Console Output Activity: Retrieves the complete console output from all executed commands in the session. It takes the CMD Process as input and returns the Command Output as a string containing all console output from the session.

Features

  • Execute Windows CMD commands in the background without displaying the command prompt console
  • Direct string output retrieval without requiring screen scraping methods
  • Flexibility to execute single or multiple commands in the same CMD session
  • Clean process management with dedicated open and close activities
  • Ability to specify starting directory for command execution
  • Option to retrieve either specific command output or complete console output
Sweet Client
Custom Accelerator
Start Date
11/14/2024
Submit Date
11/15/2024
Category
RPA Excellence