web.config里设置相对路径

来源:百度知道 编辑:UC知道 时间:2024/05/29 10:18:30
<!--导出目录-->
<add key="PSMExportFilePath" value="E:\PSMExportFile\"/>
<!--打印目录-->
<add key="PSMPrintFilePath" value="E:\PSMPrintFile\"/>
我怎么把绝对路径 改为相对路径

如果你的配置文件跟你的PSMExportFile目录在同级目录中,那么这样写:
<!--导出目录-->
<add key="PSMExportFilePath" value="PSMExportFile\"/>
<!--打印目录-->
<add key="PSMPrintFilePath" value="PSMPrintFile\"/>

. 或者 \ 或者 \\
分清楚同级目录,上级目录和下级目录就OK