批量为shp文件加字段并赋值文件名

import sys, string, os, arcgisscriptingrnrnrn# Create the Geoprocessor objectrngp = arcgisscripting.create()rnrnrn# Load required toolboxes…rngp.AddToolbox(“C:/Program Files (x86)/ArcGIS/ArcToolbox/