Description
Implements the command prompt functionality.
Parameters
-
Set a value: enables you to directly write the desired command, for example,
taskkill /F /IM Calculator.exe
. -
Save the previous step result: chooses the previous activity result as a command.
-
Calculate a value: enables you to use available properties and methods to form a command.
This options allows you to execute the specified command in the background.
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"