"Ron" <an*******@discussions.microsoft.com> schrieb:
I would like to retrieve the startupPath from a console
application. It appears that a console application does
not recognize Application, so I can't access StartupPath.
Is there a way to do this in a console application?
\\\
Imports System.Reflection
..
..
..
Private Function ApplicationPath() As String
Return _
Path.GetDirectoryName([Assembly].GetEntryAssembly().Location)
End Function
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>