Application Path of Parent EXE

  • Thread starter Thread starter Frank Rizzo
  • Start date Start date
F

Frank Rizzo

I have a class library (DLL) that needs to know the path of the EXE that
called it.

How can I find this out?
 
Try Assembly.GetCallingAssembly().CodeBase.

Better yet:

Assembly.GetCallingAssembly().Location

This will give you a normal style file name, not a "URI"-type file
name.

Marcs
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
 
Back
Top