获取程序完整路径,包括程序文件名
Assembly.GetExecutingAssembly().Location
获取路径目录信息
Path.GetDirectoryName()
获得程序所在目录
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)