devxlogo

GetApplicationPath – Retrieving the path of the running application or add-in

GetApplicationPath – Retrieving the path of the running application or add-in

' Return the application's path.' Note: it also works with add-ins's dll, whereas Application.StartupPath ' returns' Visual Studio .NET's startup path instead' Example: MessageBox.Show(GetApplicationPath())Function GetApplicationPath() As String    Return System.IO.Path.GetDirectoryName _        (System.Reflection.Assembly.GetExecutingAssembly().Location())End Function

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist