SUBST+Substituting Drive DesignatorsAllows you to substitute a different drive designator for a
drive or a path.
VERSION
PC-DOS 3.0+
MS-DOS equivalent: SUBST (3.0+)
TYPE
External
SYNTAX
[d:][path] SUBST d1: d2:path
or
[d:][path] SUBST d1: /D
or
[d:][path] SUBST
OPTIONS
[d:][path] Specifies the drive letter and path that
contain the SUBST command file.
d1: Indicates the new drive designator.
d2:path Indicates the existing drive and path.
/D Deletes the specified substitution.
EXAMPLES
SUBST D:C:\VERY\LONG\PATH\NAME
Whenever D: is used, the path name C:\VERY\LONG\PATH\NAME is
substituted.
SUBST
displays the currently defined substitutions.
MESSAGE
Cannot SUBST to a network drive
You cannot substitute a drive for a network path or substitute a
network drive for a local path.
UNDO
To discontinue the currently defined substitutions, enter
SUBST d:/D
for each substitution.
NOTE
Because SUBST substitutes drive letters for path names, it
can be used to fool programs that do not recognize path names
into using them indirectly. SUBST can be used with certain
programs that do not recognize paths and can also be used as a
type of shorthand for long path names.
------------------------------------------------------------------
[For related topics, press R]
SEE ALSO
ASSIGN Command
BREAK Command
CHKDSK Command
COMMAND Command
CTTY Command
DISKCOMP Command
DISKCOPY Command
EXE2BIN Command
FASTOPEN Command
JOIN Command
PROMPT Command
RESTORE Command