I want to move all my shape files to the geodatabase, with a single command, means I don’t want to manually copy one by one shape file into the geodatabase.
Below is the code I am using, but unable to copy my data from shape file to the geodatabase.
import arcpy
arcpy.env.workspace = "d:/roads_shp"
fcs = arcpy.ListFeatureClasses("*")
arcpy.env.workspace = "Database Connections/Bluestar.sde"
for fc in fcs:
arcpy.CopyFeatures_management(fc)