This question already has an answer here:
AST folder has 5 shapefiles.
This code tries to pass the
2100 coordinate system to these shapefiles. But it gives error 999999:
arcpy.env.workspace = r"C:\Users\user\Desktop\roads\AST" for i in arcpy.ListFeatureClasses(): sr = arcpy.SpatialReference("EPSG:2100") arcpy.DefineProjection_management(i, sr)
How to make it work?