Type: Internal (1.0 and later)
RENAME (REN) [d:][path]filename filename
Purpose: Changes the filename under which a file is stored.
RENAME changes the name of the first filename you enter to the second
you enter. If you enter a path designation for the first filename, the
file will be stored on that same path.
Wildcard characters (* or ?) may be used with either the first or second
For more information on using the RENAME command, refer to Chapter 2,
Common DOS Commands.
To change the name of the file SALES.TXT on drive A to NEWSALES.TXT on
ren a:sales.txt newsales.txt
To change the filename extensions to TXT on all files on drive B that
as the first three characters of the main filename, enter
ren b:sal*.* sal*.txt
Back to the