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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top