Share via


Run Element

Applies to: SharePoint Server 2010

    <Run command='CommandName'>    </Run>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

command

An executable command that can be run by using cmd.exe /c. Required.

Child Elements

Element

Description

Input

Contains a list of CrawledProperty elements where each element specifies input data to the command.

Output

Contains a list of CrawledProperty elements where each element specifies a crawled properties output by the command.

Parent Elements

Element

Description

PipelineExtensibility

The parent element for pipeline extensibility configuration.

Remarks

You can specify multiple Run elements, and they are processed in the same order as they occur in the configuration file.

If the Input element contains any CrawledProperty elements, the command attribute representing the command to be run must include the special string sequence "%(input)s".

The special string sequence "%(input)s" is replaced by the actual path of the input file when the command is run.

If the Output element contains any CrawledProperty elements, the command attribute representing the command to be run must include the special string sequence "%(output)s".

The special string sequence "%(output)s" is replaced by the actual path of the output file when the command is run.

Example

The following example runs two commands, sample1.exe and sample2.exe. The first command takes the input file and output file as two parameters. The second command specifies the input file and output file by using –i and –o options.

<PipelineExtensibility>
   <Run command="sample1.exe %(input)s %(output)s">
      <Input> ... </Input>
      <Output> ... </Output>
   </Run>
   <Run command="sample2.exe -i %(input)s -o %(output)s">
      <Input> ... </Input>
      <Output> ... </Output>
   </Run>
</PipelineExtensibility>

See Also

Concepts

Integrating an External Item Processing Component

Pipeline Extensibility Configuration Schema

Pipeline Extensibility Interface Schema