Subst


Applies To: Windows Server 2008,Windows Server 2008 R2,Windows Server 2003 with SP1,Windows XP,Windows Server 2003 with SP2,Windows Server 2000,Windows Server 2003,Windows Vista,Windows Server 2003 R2,Windows 7

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

For examples of how to use this command, see Examples.

Syntax


Copy Code

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:


Copy Code

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:


Copy Code

z:

Additional references

Command-Line Syntax Key