如何在.NET控制台应用程序中获取路径

For example I have a console application named "myconsole.exe" which path is C:\temp\app\myconsole.exe
I added "C:\temp\app" to the PATH environment variable, Now I open the command prompt, type CD C:\MyProjects and run myconsole, how can I get the path "C:\MyProjects" in myconsole.exe?
enter image description here

评论