using System.IO;using System.Reflection;//获取加载当前dll的路径string SysPathString = (new FileInfo(Assembly.GetExecutingAssembly().Location.ToString())).DirectoryName;