🧡 Skip to main content🔍 Skip to search

When Run CMD Command Action completes, it can provide certain variables for the next Action which can then base its operations on the outcome of the Run CMD Command Action. These variables can be used in any input of the following Action that supports Variable Wizard feature.

VariableDetails
Error level Returns the errorlevel of finished command prompt cmd.exe command or last command in batch file, if the command or batch file is finished before the completion of the Task.
Examples:
  • 259
  • 0
Process ID A process identifier or PID (usually Windows Command Prompt cmd.exe).
Examples:
  • 19272
  • 18068
Command line Returns full command line expression as it was executed in command prompt.
Examples:
  • "C:\My Scripts\LegacyScript.bat"
  • net use N: \\db1\Share /user:username password
Start-up folder Returns the location of the folder in which command was executed.
Examples:
  • C:\My Scripts\Work
  • D:\Dump\Prepare\
Completion statusRetrieve Action execution status with a possible value—Successful or Failed. Or Empty, if Action has not been executed yet.
Adjust*Streamline creation of Task workflows even further—instantly make quick variable adjustments such as in-place replacement (all, first, or last occurrence), trimming (whitespaces, quotes, etc.), or changing capitalization. Optionally, set a different display name.

Still have a question?

If you have any questions, please do not hesitate to contact our support team.