C#獲取當前運行exe路徑的方法

System.Environment.CurrentDirectory和System.AppDomain.CurrentDomain.BaseDirectory在Unity中有效,其餘未測。web //獲取當前進程的完整路徑,包含文件名(進程名)。 string str = this.GetType().Assembly.Location; result: X:\xxx\xxx\xxx.exe (
相關文章
相關標籤/搜索