I have over 100 shape files that don't have .prj file and thus when I bring them into ArcMap 10 they show the coordinate system as unknown. I know all of the shape files coordinate system is GCS WGS 1984. I also know I can use the Define Projection GP tool to individually assign the coordinate system to each file but that will take forever.
I was hoping there was a GP tool to batch define these but I don't see one. Next I was thinking maybe I could use python to do this so I looked in the help menu and found a script but it gives me an error.
Here is the python code I tried (this is for a single shp file so I would still have the pain of typing the name for each file:
import arcpy infc = r"C:\Documents and Settings\User\My Documents\ArcGIS\shpfiles\Site_2.shp" prjfile = r"<install directory>\Coordinate Systems\Geographic Coordinate Systems\World\WGS 1984.prj" arcpy.DefineProjection_management(infc, prjfile)