Good point Cor!
Further, to tell the thruth, that method is not completely equivalent,
as, in case of a dll executing,
I guess it will indicate the dll folder (not necessarily equal to the
app startup dir).
Depending on the context, I guess that sometimes one might even need
that behavior.
:)
-tom
Cor Ligthert [MVP] ha scritto:
Which needs an import and cost more processing time (invisible of course).
Cor
<to**************@uniroma1.it> schreef in bericht
news:11**********************@h76g2000cwa.googlegr oups.com...
or
System.IO.Path.GetDirectoryName(System.Reflection. Assembly.GetExecutingAssembly.Location)
:)
-tom
ronchese (a) ha scritto:
or Application.StartupPath
"Bob" <bd*****@sgiims.com> wrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
> Been looking for that trick for a long time I need the path in which
> the
> executable is running but not including the exe filename.
>
> I'm looking under my.application but nothing there as far as I can see
>
> Any help appreciated.
>
> Bob
>
>
>