#Import Modules import arcpy from arcpy import env #Defining Workspace rootfolder = #Enter Location of folder 'X' here env.workspace = rootfolder #Listing all folder in workspace listfolders = arcpy.ListWorkspaces() for folder in listfolders: env.workspace = folder arcpy.CreateFolder_management(folder, "copy") listfc = arcpy.ListFeatureClasses() for fc in listfc: desc = arcpy.Describe(fc) name = desc.basename arcpy.FeatureClassToFeatureClass_conversion(fc, folder + "/copy", name)
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.