C#之程序路径

FileSystem.AppDataDirectory
AppContext.BaseDirectory
System.Environment.CurrentDirectory
System.Windows.Forms.Application.StartupPath;
System.Windows.Forms.Application.ExecutablePath;
System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName; (本来这个只是名字,结果fullName也可以当成路径功能)
System.IO.Directory.GetCurrentDirectory();
this.GetType().Assembly.Location;

posted @ 2023-10-27 10:58  stweily  阅读(23)  评论(0编辑  收藏  举报