Tag Archives: path without filename

Get the Application Path WITHOUT the Filename in VB.NET and Higher

Click Star to Rate Post
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
 

This will get you your applications file path but without the filename included. This works for all VB.NETs including VB 2005, 2008, and Visual Basic 2010.

        Dim appPath As String

        appPath = System.Windows.Forms.Application.StartupPath

        MessageBox.Show(appPath)