Skip to content

Run CMD / Batch

Run a cmd.exe command (inline) or a .bat/.cmd file and capture its output.

Programs & ProcessesRunCmdWindows only

Overview

Run CMD / Batch is a no-code automation step in the Programs & Processes category of AutoFlowRPA. It performs its action in a single step when the workflow reaches it. You can configure 4 parameter(s) to control exactly how it behaves. This step runs on Windows. It is one of 369 commands you can drag into a workflow in the visual builder — no scripting required.

What it does

Run a cmd.exe command (inline) or a .bat/.cmd file and capture its output.

Parameters

ParameterTypeRequiredDefaultDescription
Commandmultiline
OptionalInline cmd command. Ignored if a batch file is given below.
Example: echo Hello && dir
Supports variables
Batch file (.bat/.cmd)file
OptionalOptional. If set, this file is run instead of the inline command.
Example: C:/scripts/task.bat
Supports variables
Argumentsstring
OptionalPassed to the batch file (only used with a file).
Supports variables
Store stdout invariable
Optional
Example: output

How to use Run CMD / Batch

  1. 1

    Open AutoFlowRPA and drag the Run CMD / Batch command from the Programs & Processes group onto the canvas.

  2. 2

    Set its parameters in the side panel — Run CMD / Batch has 4 configurable field(s).

  3. 3

    Connect it into your workflow and press Run. Everything executes locally on your machine.

Frequently asked questions

What does the Run CMD / Batch command do?

Run a cmd.exe command (inline) or a .bat/.cmd file and capture its output.

Which group does the Run CMD / Batch command belong to?

Run CMD / Batch is part of the Programs & Processes group. AutoFlowRPA ships with 369+ ready-made commands you can combine without code.

Does the Run CMD / Batch command take any parameters?

Yes — Run CMD / Batch has 4 configurable field(s), all editable in the visual node editor.

More Programs & Processes commands

Ready to automate your busywork?

Start your free 30-day trial today. No credit card, no commitment.