help.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SUBST--Example
Syntax  Notes
────────────────────────────────────────────────────────────────────────────
 
                               SUBST──Example
 
The following command creates a virtual drive Z for the path
B:\USER\BETTY\FORMS:
 
    subst z: b:\user\betty\forms
 
Now, instead of typing the full path, you can reach this directory by typing
the letter of the virtual drive, followed by a colon, as in the following
example:
 
    z:
 
This example works only if you have included the line LASTDRIVE=Z in your
CONFIG.SYS file to define Z as the highest letter that MS-DOS recognizes as
a disk drive. For more information, see the <LASTDRIVE> command.
 
                                      ♦