F Frank Rizzo Jul 15, 2003 #1 I have a class library (DLL) that needs to know the path of the EXE that called it. How can I find this out?
I have a class library (DLL) that needs to know the path of the EXE that called it. How can I find this out?
M Marc Scheuner [MVP ADSI] Jul 22, 2003 #2 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
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