摘要: C#获取主程序目录的方法,目前本人知道的有以下几种:1. System.Windows.Forms.Application.StartupPath2. Environment.CurrentDirectory.ToString()3. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName4. Directory.GetCurrentDirectory();5. AppDomain.CurrentDomain.BaseDirectory 阅读全文
posted @ 2013-02-20 20:32 程序and人生 阅读(555) 评论(0) 推荐(0)