System information

1.4.3 REN Command
Syntax:
REN ufn1=ufn2
The REN (rename) command allows you to change the names of files on disk. The file satisfying
ufn2 is changed to ufn1. The currently logged disk is assumed to contain the file to rename
(ufn2). You can also type a left-directed arrow instead of the equal sign if the console supports
this graphic character. The following are examples of the REN command:
REN X.Y=Q.R The file Q.R is changed to X.Y.
REN XYZ.COM=XYZ.XXX The file XYZ.COM is changed to XYZ.XXX.
The operator precedes either ufn1 or ufn2 (or both) by an optional drive address. If ufn1 is
preceded by a drive name, then ufn2 is assumed to exist on the same drive. Similarly, if ufn2 is
preceded by a drive name, then ufn1 is assumed to exist on the drive as well. The same drive
must be specified in both cases if both ufn1 and ufn2 are preceded by drive names. The following
REN commands illustrate this format:
REN A:X.ASM=Y.ASM The file Y.ASM is changed to X.ASM on drive A.
REN B:ZAP.BAS=ZOT.BAS The file ZOT.BAS is changed to ZAP.BAS on drive B.
REN B:A.ASM=B:A.BAK The file A.BAK is renamed to A.ASM on drive B.
If ufn1 is already present, the REN command responds with the error FILE EXISTS and not
perform the change. If ufn2 does not exist on the specified disk, the message NO FILE is printed
at the console.
1.4 Built-in Commands CP/M Operating System Manual
1-10