Share via


rename

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This command renames a file or directory.

Syntax

rename [src filesys path] [dst filesys path]

Parameters

  • src filesys path
    Absolute file system path of the file or directory to rename.
  • dst filesys path
    Absolute file system path of the new location of the file or directory.

    Note

    The dst filesys path must be on the same volume as the source.

Remarks

The following code example shows how to rename a file:

rename /volume/myfile /volume/dir/myrenamedfile

See Also

Reference

File System Commands