Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: VB7
Expertise: Intermediate
Jul 14, 2003

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
Francesco Balena
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date