Dela via


WorkingDirectory

Applies To: Operations Manager 2007 R2, System Center Operations Manager 2007

The working directory from which the application is to run.

Schema Hierarchy

ManagementPack
  Presentation
    ConsoleTasks
      ConsoleTask
        WorkingDirectory

Syntax

<WorkingDirectory>working directory</WorkingDirectory>

Attributes and Elements

The following sections describe attributes, child elements, and the parent element of the WorkingDirectory element.

Attributes

None.

Child Elements

None.

Parent Elements

Element Description

ConsoleTask

Represents a console task definition.

Text Value

The WorkingDirectory element is required when the Application element contains the relative path of the application that is to be run.

You can also use the working directory when your console task needs to write some temporary files and the script or executable cannot do this from its current directory. In that case, to set up a temporary working directory, you would use the %temp% environment variable as the value of the WorkingDirectory element.

See Also

Reference

Application
ConsoleTask