How can I get the application's path in a .NET console application?

后端 未结 27 1457
甜味超标
甜味超标 2020-11-21 11:11

How do I find the application\'s path in a console application?

In Windows Forms, I can use Application.StartupPath to find the current path, but this d

27条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-21 11:53

    There are many ways to get executable path, which one we should use it depends on our needs here is a link which discuss different methods.

    Different ways to get Application Executable Path

提交回复
热议问题