Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > General toolset > Tools

Copy (Data Management)

Release 9.2
Last modified November 29, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Copies input data from one location and pastes it to another location. You can copy entire feature datasets or individual feature classes and tables.


Usage tips

Command line syntax
An overview of the Command Line window
Copy_management <in_data> <out_data> {data_type}

Parameter Explanation Data Type
<in_data>

The input data element to be copied to the new location.

Data Element
<out_data>

The name of the new output data element to be created.

Data Element
{data_type}

This is the type of data being copied. In the case where a geodatabase contains a feature dataset and a feature class with the same name, you may want to specify the type of data to be copied. You would need to specify feature dataset or feature class.

String
Data types for geoprocessing tool parameters


Command line example

Copy_management D:\Workspace\Newfoundland.mdb\Landuse\roads D:\StudyArea.mdb\roads

Scripting syntax
About getting started with writing geoprocessing scripts
Copy_management (in_data, out_data, data_type)

Parameter Explanation Data Type
in_data (Required)

The input data element to be copied to the new location.

Data Element
out_data (Required)

The name of the new output data element to be created.

Data Element
data_type (Optional)

This is the type of data being copied. In the case where a geodatabase contains a feature dataset and a feature class with the same name, you may want to specify the type of data to be copied. You would need to specify feature dataset or feature class.

String

Data types for geoprocessing tool parameters


Script example

# Create Geoprocessing Object
import arcgisscripting
gp = arcgisscripting.create()

# Set the input workspace
gp.workspace = "D:/Workspace/NFTest.mdb"

# Loop through each feature class to make a backup
fcs = gp.listfeatureclasses("*")
fc = fcs.Next()
try:
    # Create backup Geodatabase
    gp.CreatePersonalGDB_management("D:/Workspace", "NFBackup.mdb")
    while fc:
        gp.copy_management(fc, "D:/Workspace/NFBackup.mdb/" + fc)
        fc = fcs.Next()

except:
    print gp.getmessages(2)

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.