This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Associates a path with a drive letter. If used without parameters,subst displays the names of the virtual drives in effect.
subst [<drive1>: [<drive2>:]<path>]subst <drive1>: /d| Parameter | Description |
|---|---|
<drive1>: | Specifies the virtual drive to which you want to assign a path. |
[<drive2>:]<path> | Specifies the physical drive and path that you want to assign to a virtual drive. |
| /d | Deletes a substituted (virtual) drive. |
| /? | Displays help at the command prompt. |
The following commands don't work and must not be used on drives specified in thesubst command:
The<drive1> parameter must be within the range that is specified by thelastdrive command. If not,subst displays the following error message:Invalid parameter - drive1:
To create a virtual drive z for the path b:\user\betty\forms, type:
subst z: b:\user\betty\formsInstead of typing the full path, you can reach this directory by typing the letter of the virtual drive followed by a colon as follows:
z:Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?