Hello Joshua,
I have use rename with the following code but it does not work:
import arcpy, os
try:
arcpy.env.workspace=r'G:\WWF\0_GeoDatabase_GIS\6_Especies\Conejo\Seguimiento\Cuadriculas\WWF\Andujar\2012\RAMON_1'
for filename in arcpy.ListFiles():
a=filename.replace('.', '_')
a="shp_"+a
arcpy.Rename_management(filename, a)
print "ok"
except:
print arcpy.GetMessages()
I get the following error message:
Executing: Rename EX22.28_MA_W.shp.xml G:\WWF\0_GeoDatabase_GIS\6_Especies\Conejo\Seguimiento\Cuadriculas\WWF\Andujar\2012\RAMON_1\shp_EX22_28_MA_W_shp_xml File
Start Time: Tue Sep 08 16:25:27 2015
Failed to execute. Parameters are not valid.
ERROR 000732: Input Data Element: Dataset EX22.28_MA_W.shp.xml does not exist or is not supported
Failed to execute (Rename).
Failed at Tue Sep 08 16:25:27 2015 (Elapsed Time: 0,01 seconds)
Any idea...