Chapter 6 / Command Reference
Parameters
drive: is
the
virtual
drive name.
pathname is
the
pathname
you want to refer to as drive:.
/D
deletes
the
association between drive: and pathname.
MS-DOS displays
the
names of
the
current
virtual
drives
if
you
omit
all
parameters.
!
,
r
I '
SUBST
I
~
1 SUBST [drive:]
[pathname]
[lD]
Substitutes a
virtual
drive name
for
pathname.
External
r-
I '
I
G
~-
\
r
t '
r
I
r
1 i
Notes
and
Suggestions:
• The
virtual
drive:
must
be in the range
A:
to LASTDRIVE:.
If
the
LASTDRIVE command is not
in
your CONFIG.SYS file,
SUBST defaults to
E:
as
the
virtual
drive: name. (Refer to
Appendix B
for
more information on LASTDRIVE.)
• The
virtual
drive: cannot be
the
same as
the
current drive.
• The
virtual
drive: cannot be
the
same as a drive reference
included
in
pathname.
• SUBST creates or deletes a virtual drive
by
associating a
pathname
with
a drive letter.
• When MS-DOS sees a drive
that
was created
with
SUBST,
it
replaces
the
reference with
the
new pathname.
Examples:
subst
d:
b:\usr\fred\forms
r-
! creates
virtual
drive D
for
the
pathname
B:\USER\FRED\
forms.
Now,
instead of typing
the
full pathname, type
D:
to
go
to
I'
this
directory.
I :
,
I"'
I .
I •
177