获得执行文件名

2014-06-24 00:54:20  访问(2664) 赞(0) 踩(0)



        /// 
        /// 获得执行文件名  YYGIS.CodeX.exe
        /// 
        /// 
        public static string GetExeFileName()
        {
            string fileFullName = System.Windows.Forms.Application.ExecutablePath;

            FileInfo info = new FileInfo(fileFullName);

            string theResult = info.Name;

            info = null;

            return theResult;
        }


标签:C#    WinForm    执行程序名 

上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)