共用方式為


StartTask.CommandLine 屬性

定義

取得或設定開始工作的命令列。

[Newtonsoft.Json.JsonProperty(PropertyName="commandLine")]
public string CommandLine { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="commandLine")>]
member this.CommandLine : string with get, set
Public Property CommandLine As String

屬性值

屬性
Newtonsoft.Json.JsonPropertyAttribute

備註

命令列不會在殼層下執行,因此無法利用殼層功能,例如環境變數擴充。 如果您想要利用這類功能,您應該在命令列中叫用殼層,例如在 Windows 中使用 「cmd /c MyCommand」 或 Linux 中的 「/bin/sh -c MyCommand」。 如果指定 startTask 的任何其他屬性,則為必要項。

適用於