TaskAddParameter.CommandLine Property


Gets or sets the command line of the task.

public string CommandLine { get; set; }
member this.CommandLine : string with get, set
Public Property CommandLine As String

Property Value



For multi-instance tasks, the command line is executed as the primary task, after the primary task and all subtasks have finished executing the coordination command line. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux.

Applies to