For
example, suppose you are logged onto the root directory
of
drive
A,
and you want to delete the file JEAN1204.DOC,
which is stored in the directory \ WORDPROC\ PERSONAL
of drive C. Enter the command as follows:
DEL
C:
\WORDPROC\PERSONAL\JEAN1204.DOC
Note that if you change from one drive to another and then try
to access a file on the previous drive, MS-DOS remembers
which was the default directory when you were last logged onto
that drive. For example, suppose the Last time you were logged
onto drive C, the default directory was the root directory. Now
you are logged onto drive
A
and enter the following command
to delete the file JEAN 1204.DOC:
DEL C:JEAN1204.DOC
MS-DOS tries to find the file you want in the root directory of
drive C, but the file is not there and an error message appears
on the screen. For this case, you would need to enter the
complete pathname as in the previous example.
If you do not know which is the default directory on another
drive, it is a good idea to include the full pathname whether
you need it or not. You can never give MS-DOS too much
information.
If you want to change to another directory on another drive,
just include the drive designator in the command-like this,
for example:
CD B:\WORDPROC\PERSONAL
3-20
Using MS-DOS With Your Computer