RENAME (REN)

The description below is from the book
DOS the Easy Way by Everett Murdock Ph.D.

CLICK HERE for information about downloading the book.

Type: Internal (1.0 and later)

Syntax:

RENAME (REN) [d:][path]filename filename

Purpose: Changes the filename under which a file is stored.

Discussion

RENAME changes the name of the first filename you enter to the second filename you enter. If you enter a path designation for the first filename, the renamed file will be stored on that same path.

Wildcard characters (* or ?) may be used with either the first or second filename designation.

For more information about the RENAME command, see Chapter 2, Using Common DOS Commands, in the downloadable book DOS the Easy Way.

Examples

To change the name of the file SALES.TXT on drive A to NEWSALES.TXT on drive A, enter

ren a:sales.txt newsales.txt

To change the filename extensions to TXT on all files on drive B that have SAL as the first three characters of the main filename, enter

ren b:sal*.* sal*.txt




Back to the Easy DOS Command Index