Execute Command Line Plug-in

The Execute Command Line plug-in allows you to invoke a command line within a workflow.

Properties

Name

Description

Group Name Modes

command

The path to the server and the name of the Powershell script to run.

Example:

Direct Value: \\server-name\folder-name\command-name.bat

Value from form field: [/my:myFields/my:field2]

Value from solution field: [field1]

Command Details NA

useshellexecute

A boolean value which determines if the shell is used to execute. The default value is False.

Command Details NA

arguments

The argument to pass to the command.

Example:

Direct Value: 'mydata'

Value from form field: [/my:myFields/my:field2]

Value from solution field: [field1]

Command Details NA

exitcodecolumn

The name of the solution field where the exit code is entered.

Example:

[Solution_Field_1]

Command Details NA

outputcolumn

The name of the solution field where the output is entered.

Command Details NA

Example

The following example runs the batch file e:\test.bat with the arguments taken from the Project solution field. The output of the command is placed in the Output solution field. In addition, the ExitCode solution field receives the integral exit code of the command line.

  • arguments – [Project]
  • command–e:\test.bat
  • exitcodecolumn – ExitCode
  • outputcolumn – Output