# Rename (Recovery Console)

## How to Use the Rename Command in the Windows XP Recovery Console

The rename command is a Recovery Console command used to rename a single file.

"Rename" and "Ren" may be used interchangeably.

A rename command is also available from the Command Prompt.

### Rename Command Syntax

rename [drive:][path] filename1 filename2

drive: = This is the drive containing the file you want to rename.

path = This is the folder or folder/subfolders located on the drive:, containing filename1 that you want to rename.

filename1 = This is the name of the file you want to rename.

filename2 = This is the name you want to rename filename1 to. You can not specify a new drive or path for the renamed file.

The rename command can only be used to rename files in the system folders of the current Windows installation, in removable media, in the root folder of any partition, or in the local installation source.

### Rename Command Examples

`rename c:\windows\win.ini win.old`

In the above example, the rename command is used to rename the win.ini file located in the C:\Windows folder to win.old.

`rename boot.new boot.ini`

In this example, the rename command has no drive: or path information specified so the boot.new file is renamed to boot.ini, all within the directory you typed the rename command from.

For example, if you type rename boot.new boot.ini from the C:\> prompt, the boot.new file located in C:\ will be renamed to boot.ini.

### Rename Command Availability

The rename command is available from within the Recovery Console in Windows 2000 and Windows XP.

### Rename Related Commands

The rename command is often used with many other Recovery Console commands.
{"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9734543561935425, "perplexity": 6546.335221332217}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 5, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-13/segments/1552912205163.72/warc/CC-MAIN-20190326115319-20190326141319-00271.warc.gz"}