zoukankan      html  css  js  c++  java
  • C# 获取当前路径

     1 System.Environment.CurrentDirectory;
     2 "E:\\Svn\\ManageSystem.WinForm\\bin\\Debug"
     3 System.Windows.Forms.Application.StartupPath
     4 "E:\\Svn\\ManageSystem.WinForm\\bin\\Debug"
     5 System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName
     6 "E:\\Svn\\ManageSystem.WinForm\\bin\\Debug\\ManageSystem.WinForm.vshost.exe"
     7 System.AppDomain.CurrentDomain.BaseDirectory
     8 "E:\\Svn\\ManageSystem.WinForm\\bin\\Debug\\"
     9 System.IO.Directory.GetCurrentDirectory()
    10 "E:\\Svn\\ManageSystem.WinForm\\bin\\Debug"
    11 System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase
    12 "E:\\Svn\\ManageSystem.WinForm\\bin\\Debug\\"
    13 this.GetType().Assembly.Location
    14 "E:\\Svn\\ManageSystem.WinForm\\bin\\Debug\\ManageSystem.WinForm.exe"
    15 System.Windows.Forms.Application.ExecutablePath
    16 "E:\\Svn\\ManageSystem.WinForm\\bin\\Debug\\ManageSystem.WinForm.EXE"

    没啥说的,直接看代码吧。

  • 相关阅读:
    移动网络优化
    移动网络架构与数据传输
    移动网络简介与RRC
    CSS之外边距折叠
    网络协议之TLS
    Smarty 模板引擎简介
    FormData介绍
    相对路径与绝对路径
    OAuth2.0
    Redis学习手册(List数据类型)
  • 原文地址:https://www.cnblogs.com/zhuhc/p/3385989.html
Copyright © 2011-2022 走看看