codespear

How do I get the file path of a shapefile or layer loaded in mxd?

Discussion created by codespear on May 12, 2010
Latest reply on May 28, 2010 by j0xue
Hi,

I'm developing using the ArcGIS 9.3 Engine Developer Kit for .net (C#).  I'm using the map control and I have the need to get the actual file path of a shapefile or layer. 

In ArcMap, I can right click on a layer and go to Properties->Source tab.  From there I see the Data source info which includes the path to the shapefile, etc.  I'd like to do something similar.

Does anyone know how to get to this layer or shapefile path information?

Thanks,
Mario Suau
Federal Signal Codespear

Outcomes