Hardware Reference
In-Depth Information
Command
Function
FASTOPEN
The
FASTOPEN
command provides a means of rapidly accessing
files. The command is only effective when a hard disk is fitted
and should ideally be used when the system is initialized
(e.g. from within the AUTOEXEC.BAT file).
Example:
FASTOPEN C:32
enables fast opening of files and provides for the details of up to
32 files to be retained in RAM.
FASTOPEN
retains details of files within RAM and must not be
used concurrently with
ASSIGN, JOIN,
and
SUBST
.
The
FDISK
utility allows users to format a hard (fixed) disk.
Since the command will render any existing data stored on the
disk inaccessible,
FDISK
should be used with extreme caution.
Furthermore, improved hard disk partitioning and formatting
utilities are normally be supplied when a hard disk is purchased.
These should be used in preference to
FDISK
whenever possible.
To ensure that
FDISK
is not used in error, copy
FDISK
to a
sub-directory that is not included in the
PATH
statement then
erase the original version using the following commands:
CD
\
MD XDOS
COPY C:
\
DOS
\
FDISK.COM C:
\
XDOS
ERASE C:
\
DOS
\
FDISK.COM
Finally, create a batch file, FDISK.BAT, along the following lines
and place it in the DOS directory:
ECHO OFF
CLS
ECHO ***** You are about to format the hard disk! *****
ECHO All data will be lost - if you do wish to continue
ECHO change to the XDOS directory and type FDISK again.
FDISK
The
FIND
command can be used to search for a character string
within a file. Options include:
FIND
/C
display the line number(s) where the search string has been
located
/N
number the lines to show the position within the file
/V
display all lines which do not contain the search string
Example:
FIND/C "output" C:/DEV/PROCESS.C
searches the file PROCESS.C present in the DEV sub-directory
for occurrences of the word 'output'. When the search string is
located, the command displays the appropriate line number.
(
continued
)