windows command subst

Subst

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

Syntax

subst [drive1: [drive2:]Path]

subst drive1: /d

Parameters

drive1: : Specifies the virtual drive to which you want to assign a path.

drive2: : Specifies the physical drive that contains the specified path (if different from the current drive).

Path : Specifies the path that you want to assign to a virtual drive.

/d : Deletes a virtual drive.

/? : Displays help at the command prompt.

Remarks

The following commands do not work, or should not be used, on drives used in the subst command:

chkdsk
diskcomp
diskcopy
format
label
recover
The drive1 parameter must be within the range specified by the lastdrive command. If not, subst displays the following error message:

Invalid parameter – drive1:

Examples

To create a virtual drive Z for the path B:UserBettyForms, type:

subst z: b:userbettyforms

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

z:

windows command subst

4 thoughts on “windows command subst

స్పందించండి

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / మార్చు )

Twitter picture

You are commenting using your Twitter account. Log Out / మార్చు )

Facebook photo

You are commenting using your Facebook account. Log Out / మార్చు )

Google+ photo

You are commenting using your Google+ account. Log Out / మార్చు )

Connecting to %s