|
VMS Help DEFRAGMENT, FILE, Examples *Conan The Librarian |
The following examples show different ways to defragment a file
or group of files and how to use the common qualifiers:
1.$ DEFRAGMENT FILE *.C;*
This command defragments all files with a .C extension in the
user's current default directory. To determine the device
and directory in which the files are located, issue the SHOW
DEFAULT command.
2.DFO> DEFRAGMENT FILE *.C;*
This command defragments all files with a .C extension on the
user's current default device. The only difference between
this command and the previous example is that this command is
entered from within the Disk File Optimizer utility instead of
from the DCL prompt.
3.$ DEFRAGMENT FILE SYS$SYSDEVICE:[000000...]*.C
This command is the same as the previous one, except that
the RMS default string is now explicitly identified as
SYS$SYSDEVICE:[000000...]*.C;*.
4.$ DEFRAGMENT FILE SYS$LOGIN:LOGIN.COM;2/EXCLUDE=*.OLD;*
This command defragments the user's LOGIN.COM file and excludes
all files with a .OLD extension.
5.$ DEFRAGMENT FILE/INHERIT=OTHER_FILE_SCRIPT.NOAFTER
This commands creates a file script identical to the OTHER_
FILE_SCRIPT and allows the Disk File Optimizer to name it
(DFG$XXX).
6.$ DEFRAGMENT FILE SYS$SYSTEM:[000000...]*.RDB/INHERIT=X/SCRIPT=Y
This command creates a script called Y . Other script
characteristics, such as log file, are inherited from script
X.
|
|