<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Rename a list of SHP files in Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549748#M42942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the results, its literally only changing the name of the .shp files, and not some of the other file components that comprise a working shapefile.&amp;nbsp; Notice your dbf file and prj file are still the old file name when shown in catalog.&amp;nbsp; You could do a arcpy listfiles with wildcards for those file endings and change the names similar to what you did for the .shp files.&amp;nbsp; I would also check the other elements of your shapefile in windows (.shx, .sbx, .sbn, etc.) and make sure they are properly renamed as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2015 13:46:49 GMT</pubDate>
    <dc:creator>IanMurray</dc:creator>
    <dc:date>2015-09-08T13:46:49Z</dc:date>
    <item>
      <title>Rename a list of SHP files in Python</title>
      <link>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549747#M42941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello people,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of SHP files that I want to rename. First, I want to replace the "." from the shp to "_", and then rename the file. As you can see in the image below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/125947_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This the code that I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;import arcpy, os&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arcpy.env.workspace=r'H:\WWF\0_GeoDatabase_GIS\6_Especies\Conejo\Seguimiento\Cuadriculas\WWF\Andujar\2012\RAMON_1'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for filename in arcpy.ListFeatureClasses():&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=filename.replace('.', '_')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a="shp_"+a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Rename_management(filename, a)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "ok"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that when I am trying to open the SHP file it does not work. I am getting the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/125984_pastedImage_7.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone knows how to fix the problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 13:32:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549747#M42941</guid>
      <dc:creator>FranciscoSobrado_Llompart</dc:creator>
      <dc:date>2015-09-08T13:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a list of SHP files in Python</title>
      <link>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549748#M42942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the results, its literally only changing the name of the .shp files, and not some of the other file components that comprise a working shapefile.&amp;nbsp; Notice your dbf file and prj file are still the old file name when shown in catalog.&amp;nbsp; You could do a arcpy listfiles with wildcards for those file endings and change the names similar to what you did for the .shp files.&amp;nbsp; I would also check the other elements of your shapefile in windows (.shx, .sbx, .sbn, etc.) and make sure they are properly renamed as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 13:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549748#M42942</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-09-08T13:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a list of SHP files in Python</title>
      <link>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549749#M42943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to replace the filename not the extension...see the example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; file_bits = ["a.shp","a.dbf","a.shx"]
&amp;gt;&amp;gt;&amp;gt; add_to = "_stuff."
&amp;gt;&amp;gt;&amp;gt; for i in file_bits:
...&amp;nbsp; bits = i.split(".")
...&amp;nbsp; newName= bits[0] + add_to + bits[1]
...&amp;nbsp; print newName
... 
a_stuff.shp
a_stuff.dbf
a_stuff.shx
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:46:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549749#M42943</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T23:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a list of SHP files in Python</title>
      <link>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549750#M42944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with the following code and it seams to work...But:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;import arcpy, os&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arcpy.env.workspace=r'G:\WWF\0_GeoDatabase_GIS\6_Especies\Conejo\Seguimiento\Cuadriculas\WWF\Andujar\2012\RAMON_1'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for filename in arcpy.ListFiles():&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print filename&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; os.rename(os.path.join(arcpy.env.workspace, filename), os.path.join(arcpy.env.workspace, filename.replace('.', '_')))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "ok"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX22_28_MA_W_dbf&lt;/P&gt;&lt;P&gt;ok&lt;/P&gt;&lt;P&gt;EX22_28_MA_W_prj&lt;/P&gt;&lt;P&gt;ok&lt;/P&gt;&lt;P&gt;EX22_28_MA_W_sbn&lt;/P&gt;&lt;P&gt;ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Continuous...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I am trying to open the SHP file in ArcMap the files are not there, although the folder contains the files as displayed by the python script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/125950_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 14:06:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549750#M42944</guid>
      <dc:creator>FranciscoSobrado_Llompart</dc:creator>
      <dc:date>2015-09-08T14:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a list of SHP files in Python</title>
      <link>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549751#M42945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/rename.htm"&gt;Rename (Data Management)&lt;/A&gt; tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 14:13:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549751#M42945</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2015-09-08T14:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a list of SHP files in Python</title>
      <link>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549752#M42946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my case Have "." in the middle of the name... see example below&lt;/P&gt;&lt;P&gt;file_bits = [&lt;SPAN class="string"&gt;"a.b.b.shp",&lt;SPAN class="string"&gt;"a.b.dbf"&lt;/SPAN&gt;,&lt;SPAN class="string"&gt;"a.b.b.shx"&lt;/SPAN&gt;]&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;if I use split("."), how can I replace only the file name and not the extension...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 14:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549752#M42946</guid>
      <dc:creator>FranciscoSobrado_Llompart</dc:creator>
      <dc:date>2015-09-08T14:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a list of SHP files in Python</title>
      <link>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549753#M42947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your stripping the file extensions off of the files, so ArcGIS Desktop won't see them anymore as shapefiles because the files don't have the proper file extensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I am a big fan of using native Python tools instead of ArcPy tools, sometimes the ArcPy tools work best.&amp;nbsp; In this case, I recommend using the &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/rename.htm"&gt;Rename &lt;/A&gt;tool because it will take care of renaming all the associated/related shapefile files along with the SHP file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 14:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549753#M42947</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-09-08T14:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a list of SHP files in Python</title>
      <link>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549754#M42948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joshua,&lt;/P&gt;&lt;P&gt;I have use rename with the following code but it does not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;import arcpy, os&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;try:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace=r'G:\WWF\0_GeoDatabase_GIS\6_Especies\Conejo\Seguimiento\Cuadriculas\WWF\Andujar\2012\RAMON_1'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for filename in arcpy.ListFiles():&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=filename.replace('.', '_')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a="shp_"+a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Rename_management(filename, a)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "ok"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;except:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;Start Time: Tue Sep 08 16:25:27 2015&lt;/P&gt;&lt;P&gt;Failed to execute. Parameters are not valid.&lt;/P&gt;&lt;P&gt;ERROR 000732: Input Data Element: Dataset EX22.28_MA_W.shp.xml does not exist or is not supported&lt;/P&gt;&lt;P&gt;Failed to execute (Rename).&lt;/P&gt;&lt;P&gt;Failed at Tue Sep 08 16:25:27 2015 (Elapsed Time: 0,01 seconds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 14:28:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549754#M42948</guid>
      <dc:creator>FranciscoSobrado_Llompart</dc:creator>
      <dc:date>2015-09-08T14:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a list of SHP files in Python</title>
      <link>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549755#M42949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code, see if:&amp;nbsp; 1) it works, and 2) it gives the results you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy, os

arcpy.env.workspace = r'D:\transfer\geodata'

for shp in arcpy.ListFiles('*.shp'):
&amp;nbsp;&amp;nbsp;&amp;nbsp; root, ext = os.path.splitext(shp)
&amp;nbsp;&amp;nbsp;&amp;nbsp; new_root = root.replace('.','_')
&amp;nbsp;&amp;nbsp;&amp;nbsp; if new_root != root:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Rename_management(shp, new_root + ext)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:47:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549755#M42949</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T23:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a list of SHP files in Python</title>
      <link>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549756#M42950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code seems to work... it does not give any error message in PyScripter...But when I am trying to add the shp to ArcMAP it gives the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/125996_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 14:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549756#M42950</guid>
      <dc:creator>FranciscoSobrado_Llompart</dc:creator>
      <dc:date>2015-09-08T14:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a list of SHP files in Python</title>
      <link>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549757#M42951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your trying to hard &lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
arcpy.env.worcspace = "Your workspace"
for file in arcpy.ListFeatureClasses():
&amp;nbsp; a = "shp_" + file.replace('.','_')
&amp;nbsp; arcpy.Rename_management(file,a)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:47:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549757#M42951</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2021-12-11T23:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a list of SHP files in Python</title>
      <link>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549758#M42952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You've discovered the reason why it's not a good practice to use special (reserved) characters as part of a file name. Just because you can, doesn't mean you should.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.esri.com/cn/knowledgebase/techarticles/detail/23087" title="http://support.esri.com/cn/knowledgebase/techarticles/detail/23087"&gt;23087 - What characters should not be used in ArcGIS for field names and table names?&lt;/A&gt; &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;For ArcGIS to work with multiple data types, certain characters in field or table names are not supported...&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;Eliminate any characters that are not alphanumeric character or an underscore.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;Do not start field or table names with an underscore or a number.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 17:39:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rename-a-list-of-shp-files-in-python/m-p/549758#M42952</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-09-08T17:39:09Z</dc:date>
    </item>
  </channel>
</rss>

