rename

This command renames a file or directory.

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

File System Commands

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.