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

Rename (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

Changes the name of data, such as feature datasets, feature classes, rasters, tables, and toolboxes.


Usage tips

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

Parameter Explanation Data Type
<in_data>

The input dataset or file to be renamed.

Data Element
<out_data>

The new name for the dataset or file.

Data Element
{data_type}

The type of data to be renamed. In the case where a geodatabase contains a feature dataset and a feature class with the same name, it would be necessary to specify the type of data to be renamed. In this case you would enter FeatureDataset or FeatureClass.

String
Data types for geoprocessing tool parameters


Command line example

rename_management c:/workspace/roads.shp c:/workspace/pavedRds.shp

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

Parameter Explanation Data Type
in_data (Required)

The input dataset or file to be renamed.

Data Element
out_data (Required)

The new name for the dataset or file.

Data Element
data_type (Optional)

The type of data to be renamed. In the case where a geodatabase contains a feature dataset and a feature class with the same name, it would be necessary to specify the type of data to be renamed. In this case you would enter FeatureDataset or FeatureClass.

String

Data types for geoprocessing tool parameters


Script example

import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "c:/Workspace"
gp.rename("rivers.shp", "waterways.shp")

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