D
Douglas Martin
I'm not sure this is the correct News Group. My question
goes to the Framework class that will identify the name of
the executable running - my mainline EXE - from a Class
Library (dll).
About 80% of my programming is batch, unattended
execution, programs, which are now refered to a console
programs. Naturally, I try to have most housekeeping code
isolated in commonly shared code (in VB6 it was eithin in
DLLs or a mCommon.bas module included in each program).
I used to be able to use app.EXEName to get this
information. Documentation says this has been superceded
by
System.Reflection.Assembly.GetExecutingAssembly.Location
which returns the full path and filename, which I can just
parse to get the EXEName (filename portion only).
However, when I use this function from within a common
class library (which now has the same code reworked that
was in mCommon.bas), it returns the name of the class
library DLL and not the calling, mainline, EXE.
Is there a native framework method/property that exposes
this value?
regards,
doug
goes to the Framework class that will identify the name of
the executable running - my mainline EXE - from a Class
Library (dll).
About 80% of my programming is batch, unattended
execution, programs, which are now refered to a console
programs. Naturally, I try to have most housekeeping code
isolated in commonly shared code (in VB6 it was eithin in
DLLs or a mCommon.bas module included in each program).
I used to be able to use app.EXEName to get this
information. Documentation says this has been superceded
by
System.Reflection.Assembly.GetExecutingAssembly.Location
which returns the full path and filename, which I can just
parse to get the EXEName (filename portion only).
However, when I use this function from within a common
class library (which now has the same code reworked that
was in mCommon.bas), it returns the name of the class
library DLL and not the calling, mainline, EXE.
Is there a native framework method/property that exposes
this value?
regards,
doug