Using ArcPy, how do I add the name of FeatureClasses to the names of the joined fields?
This is my code which I think helps explain what I am looking for.
thank you for your help
--------------------------------------------------------------------
import arcpy
arcpy.env.workspace = arcpy.GetParameterAsText(0)
fc = arcpy.GetParameterAsText(1)
featureList = arcpy.ListFeatureClasses()
field_names = [f.name for f in arcpy.ListFields(fc)]
for feature in featureList:
fields = ["AAAA"]
arcpy.JoinField_management("BATI", "ID_BATI", feature, "ID_BATI", fields)
------------------------------------------------------------------
