if your code is running inside a DLL then code:
Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location)
will not give the same results as
'Application.StartupPath'
since it will return the DLL location while the other will give the
executable location, which i need.
Herfried K. Wagner said:
z. f. said:
in VB6 i use App.Path to determine the path my executable run from.
what is the VB.NET / framework replacement fot that?
'Application.StartupPath', or more general (can be used in DLL projects
too):
\\\
Imports System.IO
Imports System.Reflection
.
.
.
Private Function ApplicationPath() As String
Return _
Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location)
End Function
///