Home NT Commands
NT Syntax

REN

Rename a file or files.

   REN [drive:][path]old_filename new_filename

RENAME is a synonym for REN

You cannot specify a different drive or path for `new_filename` - use the MOVE command instead.

Both the source and/or destination may include wildcards.

e.g.
   REN *.txt *.xyz
   REN c:\MyFile.txt *.xyz
   REN c:\MyFile.txt ????.xyz

"Remember kids, don't whiz on the electric fence." - Ren & Stimpy

Related Commands:

MOVE
- Move a file from one folder to another
StampMe.cmd - Batch file to rename a file to include the current date and time.

Equivalent Linux BASH commands:

mv
- Move or rename files or directories



Simon Sheppard
SS64.com