Run CMD / Batch

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

Programs & ProcessesRunCmdWindows only

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

More Programs & Processes commands

Ready to automate your busywork?

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