获取物理路径相关

Posted 随缘梦中人

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了获取物理路径相关相关的知识,希望对你有一定的参考价值。

1、MVC网站:AppDomain.CurrentDomain.BaseDirectory

2、定时Job获取当前Job所在路径:

string processPath =Process.GetCurrentProcess().MainModule.FileName;
processPath = Path.GetDirectoryName(processPath);

 

以上是关于获取物理路径相关的主要内容,如果未能解决你的问题,请参考以下文章