Get Physical location

  • Thread starter Thread starter Dani Peer
  • Start date Start date
D

Dani Peer

Hi,
I build a COM interop DLL. I want that this dll will be able to get it's
PHYSICAL LOCATION since I need it to read an XML file. How can I get the
Physical location. Directory.GetCurrentDirectory() returns working
directory.
Any solutions ?
Dani
 
You may want to try Assembly.GetExecutingAssembly().Location;
It, however, gives you the location in code base format.

Hope this helps.
Ming Chen
 
Back
Top