Command Prompt

Description

Implements the command prompt functionality.

Parameters

Command

  1. Set a value: enables you to directly write the desired command, for example, taskkill /F /IM Calculator.exe.

  2. Save the previous step result: chooses the previous activity result as a command.

  3. Calculate a value: enables you to use available properties and methods to form a command.

Execute in background

This options allows you to execute the specified command in the background.

Comment

Contains an annotation to the activity. The input text will be displayed above the activity name.

Result

To store the cmd result in a variable, a user needs to add the 'Assign value to variable' activity after the cmd block, specify the variable name, and choose the 'Save the previous step result' option.

The result is a string. For example, if the whoami command is specified in the 'Command Prompt' activity then the following result will be returned: "desktop-ab1c23d\\demo_user\r\n"

Usage Examples

This activity, for example, is a good way to start any application. You may add the corresponding command to the 'Command Promt' activity instead of trying to click the application shortcut.