zoukankan      html  css  js  c++  java
  • 关于程序路径Path.Combine以及AppDomain.CurrentDomain.BaseDirectory

    关于程序路径

    LucenePath:@(System.Configuration.ConfigurationManager.AppSettings["LucenePath"])<br />
    Path.Combine(相对目录)@(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "lucene_index"))<br />
    Path.Combine(绝对目录)@(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, System.Configuration.ConfigurationManager.AppSettings["LucenePath"]))<br />*@
    
    @*输出结果:
    LucenePath:C:inetpubwwwrootwww_domain_netinApp_Datalucene_index
    Path.Combine(相对目录)H:wwwrootdomaindomain.Weblucene_index
    Path.Combine(绝对目录)C:inetpubwwwrootwww_domain_netinApp_Datalucene_index*@

    LucenePath:@(System.Configuration.ConfigurationManager.AppSettings["LucenePath"])<br />Path.Combine(相对目录)@(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "lucene_index"))<br />Path.Combine(绝对目录)@(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, System.Configuration.ConfigurationManager.AppSettings["LucenePath"]))<br />*@
    @*输出结果:LucenePath:C:inetpubwwwrootwww_haolizi_netinApp_Datalucene_indexPath.Combine(相对目录)H:wwwrootHaoLiZiHaoLiZi.Weblucene_indexPath.Combine(绝对目录)C:inetpubwwwrootwww_haolizi_netinApp_Datalucene_index*@

  • 相关阅读:
    JSP/Servlet相关
    mysql 相关问题解决
    Git常用
    利用JDBC连接MySQL并使用MySQL
    memcache、redis原理对比
    Python 2.7.x 和 3.x 版本的重要区别
    python 单例模式
    python 装饰器原理及用法
    python 冒泡排序
    python 迭代器和生成器
  • 原文地址:https://www.cnblogs.com/duanweishi/p/5408312.html
Copyright © 2011-2022 走看看