C#获取当前运行exe路径的方法

System.Environment.CurrentDirectory和System.AppDomain.CurrentDomain.BaseDirectory在Unity中有效,其余未测。web //获取当前进程的完整路径,包含文件名(进程名)。 string str = this.GetType().Assembly.Location; result: X:\xxx\xxx\xxx.exe (
相关文章
相关标签/搜索