取文件路径的父层目录 + 取后缀名
string dataDir = AppDomain.CurrentDomain.BaseDirectory;
if(dataDir.EndsWith(@"\bin\Debug\) || dataDir.EndsWith(@"\bin\Release\")){
dataDir = System.IO.Directory.GetParent(dataDir).Parent.Parent.FullName;
}
string FileDir = dataDir;
string hzm = System.IO.Path.GetExtension(FileDir);