how to get the application physical path in windows forms application

后端 未结 5 629
滥情空心
滥情空心 2020-12-16 04:20

how to get the application path in windows forms , i used the bellow code but it is saying like \"method not found\"

Application.ExecutablePath;
Application.         


        
5条回答
  •  一整个雨季
    2020-12-16 05:00

    This will return the complete path to your Application

    System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)
    

提交回复
热议问题