Application folder

  • Thread starter Thread starter Bob Schild
  • Start date Start date
B

Bob Schild

I working on a VB.NET SDE application. Since here's no
"Application.StatupPath" how do i get the path to the folder that the EXE is
installed in?
 
Hi,
One example to determine the Executing Application Path in
VB unter .NET Compact Framework.

Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Dim path As String
path = System.IO.Path.GetDirectoryName( _
System.Reflection.Assembly.GetExecutingAssembly
().GetName().CodeBase)
MessageBox.Show(path)
End Sub
 
Back
Top