I have created many shapefiles with the same name and every shapefile is in its own folder with a specific name.
For example:
folder1\polygon.shp
folder2\polygon.shp
folder3\polygon.shp
And I want the features to be like: folder1_polygon.shp, folder2_polygon.shp, etc...
How to add a parent folder name to a feature name using the ModelBuilder?