help exporting map layers

Discussion created by walshsb on Jul 28, 2011
Latest reply on Jul 28, 2011 by stacyrendall
I am trying to create a python script that will export all the files that are located in the .mxd table of contents.  What I am trying to do is export everything into a folder similar to the map package tool but I do not want to change the layers to actual .lyr files, but keep them as .shp files.  There are also some raster files used in the maps.
I was trying to use the arcpy.Copymanagement but am stuck with how to enter the input.  I was trying to use

mxd = arcpy.mapping.MapDocument("Current")
lyr = arcpy.mapping.ListLayers(mxd)

Am I on the right track with this??