Environment.ProcessPath 屬性

定義

回傳啟動當前執行程序的可執行檔路徑。 當路徑不可用時返回 null

public:
 static property System::String ^ ProcessPath { System::String ^ get(); };
public static string? ProcessPath { get; }
static member ProcessPath : string
Public Shared ReadOnly Property ProcessPath As String

屬性值

啟動當前執行程序的可執行檔路徑。

備註

若執行檔在首次存取此屬性前被重新命名或刪除,回傳值為未定義,且取決於作業系統。

適用於