Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 1.63 KB

File metadata and controls

66 lines (44 loc) · 1.63 KB
title description ms.topic ms.assetid ms.author author manager ms.date
subst
Reference article for the subst command, which associates a path with a drive letter.
reference
3e69234c-2312-4343-868b-afc1017c622a
daknappe
robinharwood
mtillman
10/16/2017

subst

Associates a path with a drive letter. If used without parameters, subst displays the names of the virtual drives in effect.

Syntax

subst [<drive1>: [<drive2>:]<path>]
subst <drive1>: /d

Parameters

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.

Remarks

Examples

To create a virtual drive z for the path b:\user\betty\forms, type:

subst z: b:\user\betty\forms

Instead 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:

Related links