Jaruzel.com

Get the Application Path


Dim appPathOnly As String
appPathOnly = System.Windows.Forms.Application.StartupPath

MessageBox.Show(appPathOnly)


Dim appPathFilename As String
appPathFilename = System.Windows.Forms.Application.ExecutablePath

MessageBox.Show(appPathFilename)

'Or a more direct approach
Dim strEXEPath As String = System.IO.Path.GetDirectoryName(System.Reflection.Assembly._
GetExecutingAssembly.GetModules()(0).FullyQualifiedName)