C# 获取应用程序的路径
更新:HHH   时间:2023-1-7


  • 获取Console程序的路径和所在目录

string path = System.Reflection.Assembly.GetExecutingAssembly().Location;

string dir = System.IO.Path.GetDirectoryName(path);



返回编程语言教程...