REN(DOS) UNIX System V REN(DOS)
Name
ren - renames a file
Syntax
ren [drive:]pathname pathname
Description
The ren command renames all files matching the first
pathname. However, because you cannot rename files across
disk drives, ren ignores any drive name that you specify
with the second pathname.
You may use wildcards (* or ?) in either pathname option,
but if you use them in the second pathname, ren will not
change the positions of the corresponding character.
Examples
The following command changes the extension of all filenames
ending in .txt to .doc:
ren *.txt *.doc
In the next example, ren renames a file named chap10 (on
drive B) to part10:
ren b:chap10 part10
The newly renamed file part10 remains on drive B.
Notes
ren/rename is an internal command.
REN(DOS) (printed 8/16/89) REN(DOS)