Mark
Thu May 13 03:54:23 CDT 2004
Hi Herfried. I would have used the following.
string myDir = System.IO.Directory.GetCurrentDirectory();
Or is there a reason to avoid it and use you method instead?
--
--
Br,
Mark Broadbent
mcdba , mcse+i
=============
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:2ggignF2hpnpU2@uni-berlin.de...
> * "vadim" <vadim@dontsend> scripsit:
> > How can I find the directory where my application resides or where it
was
> > launched from?
> > There are .Net functions that give current directory but not the
application
> > directory.
>
> \\\
> Imports System.IO
> Imports System.Reflection
> .
> .
> .
> Private Function ApplicationPath() As String
> Return _
> Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location)
> End Function
> ///
>
> --
> Herfried K. Wagner [MVP]
> <URL:
http://dotnet.mvps.org/>