Share via


Task.CommandLine Property

Retrieves or sets the command line for the task.

Namespace: Microsoft.ComputeCluster
Assembly: CcpAPI (in ccpapi.dll)

Usage

Syntax

'Declaration
<XmlAttributeAttribute> _
Public Property CommandLine As String
[XmlAttributeAttribute] 
public string CommandLine { get; set; }
[XmlAttributeAttribute] 
public:
virtual property String^ CommandLine {
    String^ get () sealed;
    void set (String^ value) sealed;
}
/** @property */
public final String get_CommandLine ()

/** @property */
public final void set_CommandLine (String value)
public final function get CommandLine () : String

public final function set CommandLine (value : String)

Property Value

The command line. The command is limited to 480 Unicode characters.

Remarks

The command line is required for all tasks. The command line must include the name of the executable program and any arguments. If the path to the executable program contains long file names, enclose the path in quotation marks.

For more information about specifying the command line, see the description for the command line parameter of the Win32 CreateProcess function.

The executable program must exist under the specified path on each node specified in the Task.RequiredNodes property. If you do not specify a list of required nodes, the executable program must exist on each node in the cluster. The same is true if you add the task to a job and the job does not use the Job.AskedNodes property to limit the nodes on which the task runs.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Microsoft Windows Compute Cluster Server 2003, Windows Server 2003, Windows XP

Target Platforms

Microsoft Windows Compute Cluster Server 2003, Windows Server 2003 with Compute Cluster Pack Client Utilities, Windows XP with Compute Cluster Pack Client Utilities

See Also

Reference

Task Class
Task Members
Microsoft.ComputeCluster Namespace