Skip to main content

Open command session

Start a console program such as cmd.exe or powershell.exe and keep it open, so later steps can write to it and read its output.

Command in the Application toolkit · id ooa.application/open_session · 6 inputs, 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
ProgramStringNocmd.exeConsole program to run: cmd.exe, powershell.exe or any program that reads its standard input.
ArgumentsListNoArguments, one list item each. For powershell.exe or pwsh with none, it reads commands from this session (-NoLogo -NoProfile -Command -).
Working folderFileNoFolder to start in; the workspace when empty.
Output encodingStringNoconsoleText encoding of what is written and read: console (the code page console programs use here), utf-8 (any language; the program runs in a UTF-8 console, but cmd.exe itself can then only take ASCII typed text), or a name such as cp850.
EnvironmentDictionaryNoExtra environment variables for the program; an empty value removes one.
SessionStringNocmdName for this session; later steps use it.

Outputs​

OutputTypeWhat it is
process_idNumberProcess id of the program.