[转]C# Winform获取bin目录的路径

轉自:花落、莫相囄

 

//获取到bin目录的下层路径:bin\Debug\

string aa = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;

string cc = System.AppDomain.CurrentDomain.BaseDirectory;

//获取到bin目录:bin\Debug

string dd = System.Environment.CurrentDirectory;

string ee = System.IO.Directory.GetCurrentDirectory();

string ff = System.Windows.Forms.Application.StartupPath;

//获取程序.exe

string bb = System.Windows.Forms.Application.ExecutablePath;

上一篇‡: PowerDesigner16.0.0.3488 官方下载+破解文件

下一篇‡: Emlog在Godaddy Windows 主机中的伪静态设置和中文tag路径问题

最近回复