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 function 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 block. The input text will be displayed inside the block above the function name.

Result

To store the cmd result in a variable, a user needs to add the 'Assign value to variable' function 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' function then the following result will be returned: "desktop-ab1c23d\\demo_user\r\n"

Usage Examples

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