Execute Command Line Plug-in

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

Properties

Name

Description

command

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

Example:

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

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

Value from solution field: [field1]

useshellexecute

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

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]

exitcodecolumn

The name of the solution field into which the exit code will be placed.

Example:

[Solution_Field_1]

outputcolumn

The name of the solution field into which the output will be placed.

Example

The following example runs the batch file e:\test.bat with the arguments taken from the solution field ‘Project’. The output of the command is placed in the solution field ‘Output'. 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