#specify the workspace rasters are located in ws = "H:\Documents\ArcGIS\Default.gdb" arcpy.env.workspace = ws #for each Raster in the workspace, do something rasters = arcpy.ListRasters() for r in rasters: desc = arcpy.Describe(r) rastername = desc.Name print "Raster Name: %s" % (rastername)
import shutil sourcefile = r'E:\path\to\file\example.ext' destinationfile = r'C:\path\to\where\File\gets\copied\copy_example.ext' shutil.copy(sourcefile, destinationfile)