码迷,mamicode.com
首页 > 其他好文 > 详细

获取路径的方法

时间:2016-04-15 15:23:26      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:

//获取路径的方法
//string location1 = this.GetType().Assembly.Location;
//string location2 = System.AppDomain.CurrentDomain.BaseDirectory;
//string location3 = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
//string location4 = System.IO.Directory.GetCurrentDirectory();
//string location5 = System.Environment.CurrentDirectory;
//string location6 = System.Windows.Forms.Application.StartupPath;
//string location7 = System.Windows.Forms.Application.ExecutablePath;
//string location8 = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;

获取路径的方法

标签:

原文地址:http://www.cnblogs.com/1175429393wljblog/p/5395520.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!