Share via


ITask.CommandLine Property

Retrieves or sets the command line for the task.

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

Usage

Syntax

'Declaration
Property CommandLine As String
string CommandLine { get; set; }
property String^ CommandLine {
    String^ get ();
    void set (String^ value);
}
/** @property */
String get_CommandLine ()

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

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 ITask.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 IJob.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

ITask Interface
ITask Members
Microsoft.ComputeCluster Namespace