Environment.ProcessPath 屬性

定義

傳回啟動目前執行中進程的可執行檔路徑。 null當路徑無法使用時傳回 。

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

屬性值

String

啟動目前執行中進程的可執行檔路徑。

備註

如果在第一次存取這個屬性之前重新命名或刪除可執行檔,則傳回值是未定義的,而且取決於作業系統。

適用於