zoukankan      html  css  js  c++  java
  • C# Winform获取bin目录的路径

    //获取到bin目录的下层路径:binDebug

                string aa = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;

                string cc = System.AppDomain.CurrentDomain.BaseDirectory;

                

                //获取到bin目录:binDebug

                string dd = System.Environment.CurrentDirectory;

                string ee = System.IO.Directory.GetCurrentDirectory();

                string ff = System.Windows.Forms.Application.StartupPath;

     

                //获取程序.exe

                string bb = System.Windows.Forms.Application.ExecutablePath;

  • 相关阅读:
    菜根谭#39
    菜根谭#38
    菜根谭#37
    菜根谭#36
    菜根谭#35
    菜根谭#34
    菜根谭#33
    菜根谭#32
    mysqli的使用
    mysql常用修改创建语句
  • 原文地址:https://www.cnblogs.com/ChineseMoonGod/p/4191680.html
Copyright © 2011-2022 走看看