首页 > 其他 > 详细

得到本地应用程序的EXE的路径

时间:2019-01-21 14:35:59      阅读:183      评论:0      收藏:0      [点我收藏+]

实现效果:

  技术分享图片

知识运用:

  Application类的ExecutablePath属性    //获取启动了应用程序的可执行文件的路径和可执行文件的名称

     public static string ExecutablePath ( get;);

实现代码:

        private void Form1_Load(object sender, EventArgs e)
        {
            richTextBox1.Text = "EXE文件路径:" + Application.ExecutablePath;
        }

  

得到本地应用程序的EXE的路径

原文:https://www.cnblogs.com/feiyucha/p/10298334.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!