I have 100 shapefiles that all have 2 fields in common called Type2017
and Type2018
. The whole of the fields have only one number (1 or 2 or 3). fo example, Type2017 = 1 or Type2018 = 2
I would like to copy those shapefiles which one of these fields have been filled with number 1.
Usually I use this code for copying shapefiles to another folder:
NewFolder = WORK_DIRECTORY + r'/01_SHP'
copyFeatureClass = os.path.join(NewFolder, os.path.basename(Shapefile))
arcpy.CopyFeatures_management(Shapefile, CopyFeatureClass)
But I don’t know how to input the field value that I want .