//获取项目的目录 DirectoryInfo dir = new DirectoryInfo(Application.StartupPath).Parent.Parent; string target = dir.FullName;