Command attributes for specifying directories

Command Line and Windows Command adapter requests contain <command> elements that can use the following optional attributes to specify directories for command execution or script location.

The following table describes the command attributes for directories.

<command> attributes for directories




Specifies the directory where the command is executed

If this attribute is not specified, the command executes in the java ProcessBuilder object's default directory. This attribute is not valid for the Windows Command adapter.


To execute a script from a specific directory, a period followed by a forward slash (./) must precede the script name.


Specifies the directory in which the script is located

If this attribute is not specified, the script must be located in the current directory.

In the Command Line adapter sample XML request shown in the following figure, the command executes in the /usr/executionDir directory, using a script from the /usr/scriptDir directory.

XML sample of <command> attributes for directories

  <command working-dir="/usr/executionDir" command-dir="/usr/scriptDir">

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.