import arcpy from arcpy import env import os.path in_dir = arcpy.GetParameterAsText(0) out_dir = arcpy.GetParameterAsText(1) env.workspace = in_dir input_tables = arcpy.ListTables() vtab = arcpy.ValueTable() for table in input_tables: vtab.addRow(os.path.join(in_dir, table)) merged_table = os.path.join(out_dir) arcpy.Merge_management(vtab, merged_table, '')
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.