# rename command

The rename command renames both the dictionary and data portions of
 the file. It can also be used to rename only the dictionary or data portions of the file by
 specifying DICT or DATA in the command line.

The rename command cannot be used to transfer files between the dictionary
 and data levels. This command sets all group update flags to allow incremental saves to be
 used correctly.

## Syntax

```
RENAME [(DICT/DATA)] old-filename
TO: new-filename
```

## Example(s)

```
RENAME [(DICT/DATA)] test1
new name: test2
```

## See also

- [copy command](https://d3codex.com/tcl/copy-command/)
- [delete-file command](https://d3codex.com/tcl/delete-file-command/)
- [move-file command](https://d3codex.com/tcl/move-file-command/)
- [rename-file command](https://d3codex.com/tcl/rename-file-command/)
- [steal-file command](https://d3codex.com/tcl/steal-file-command/)

---
Source: https://d3codex.com/tcl/rename-command/ - part of the D3Codex reference.
