Python, .NET, C++, GIS, and Computer Mysticism
import arcpy from arcpy import env env.workspace = arcpy.GetParameterAsText(0) # workspace parameter fcs = arcpy.ListFeatureClasses() for fc in fcs: arcpy.AddSpatialIndex_management(fc) print 'fin'