Where is app.path?

T

Tor Inge Rislaa

Where is app.path?

In VB 6.0 I could refer to the app.path how is that done in VB.NET

VB 6.0 Code:
Msgbox (app.path)

TIRislaa
 
J

Jan Engel Ketmig

Public Shared AppExe As String = New
System.IO.FileInfo(System.Reflection.Assembly.GetExecutingAssembly.Location)
..ToString
 
H

Herfried K. Wagner [MVP]

* "Tor Inge Rislaa said:
In VB 6.0 I could refer to the app.path how is that done in VB.NET

\\\
Private Function ApplicationPath() As String
Return _
Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location)
End Function
///
 
J

Jan

Tor,

dim PathWithAppName as string = System.Windows.Forms.Application.StartupPath
dim PathWithoutAppName as string =
System.Windows.Forms.Applications.ExecutablePath

Regards,
Jan
 
D

Daniel Bass

System.Windows.Forms.Application.StartupPath


Where is app.path?

In VB 6.0 I could refer to the app.path how is that done in VB.NET

VB 6.0 Code:
Msgbox (app.path)

TIRislaa
 

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

Similar Threads


Top