User`s guide
RENAME
the system places zeros in the directory entry date position. Normally, RT–11
preserves the existing file creation date when it renames a file.
The following example renames files and changes their dates to the current
system date:
.RENAME/SETDATE DU1:(*.FOR *.OLD)
Files renamed:
DU1:ABC.FOR to DU1:ABC.OLD
DU1:AAF.FOR to DU1:AAF.OLD
DU1:MERGE.FOR to DU1:MERGE.OLD
/SINCE[:date]
Renames all files on a specified device created on or after a specified date.
The following command renames only those MAC files on DK created on or after
February 24, 1991:
.RENAME/SINCE:24:FEB:91 *.MAC *.BAK
Files copied:
DK:A.MAC to DK:A.BAK
DK:B.MAC to DK:B.BAK
DK:C.MAC to DK:C.BAK
/SYSTEM
Includes SYS files in a wildcard RENAME operation. Use this option if you need
to rename system (SYS) files and you use wildcards in the input file type. If you
omit this option in the preceding type of operation, SYS files are excluded from
the RENAME operation and a message is displayed on the terminal to remind
you of this. However, if you specify a SYS file type, you do not need to specify
the /SYSTEM option to rename system files.
This example renames all files on DU1: with the file name MM, including SYS
files, to MX files:
.RENAME/SYSTEM DU1:MM.* DU1:MX.*
Files renamed:
DU1:MM.MAC to DU1:MX.MAC
DU1:MM.OBJ to DU1:MX.OBJ
DU1:MM.SAV to DU1:MX.SAV
DU1:MM.SYS to DU1:MX.SYS
If you specify a SYS file type, you do not need to specify the /SYSTEM option to
rename system files.
/WAIT
Initiates the RENAME operation but then pauses and waits for you to mount the
volume that contains the files you want to rename. The /WAIT option is useful
if you have a single-disk system.
When RT–11 pauses, it displays Mount input volume in <device>; Continue?.
Mount the input volume and type Y
RETURN
to continue the RENAME operation.
Type N
RETURN
or press
CTRL/C
to abort the RENAME operation and return
control to the monitor.
RT–11 Command Descriptions 207










