path of dll loaded in exe

  • Thread starter Thread starter john
  • Start date Start date
J

john

I have a dll that is referenced by an exe. the default
path of the appdomain is the path to the exe, but i need
to retrieve the path to the dll. how can i do this when
the exe has loaded the dll?
 
I have a dll that is referenced by an exe. the default
path of the appdomain is the path to the exe, but i need
to retrieve the path to the dll. how can i do this when
the exe has loaded the dll?

System.Reflection.Assembly.GetExecutingAssembly().Location from within
the DLL code.



Mattias
 
Hi John,

Did you tried
System.Reflection.Assembly.GetExecutingAssembly().GetName().Location

Cheers,
 
Back
Top