SUBST

Associates a path with a drive letter.

SUBST [drive1: [drive2:]path]
SUBST drive1: /D

drive1: Specifies a virtual drive to which you want to assign a path.
[drive2:]path Specifies a physical drive and path you want to assign to
a virtual drive.
/D Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.

Notes

This is a useful command to use if you have a path name that is too long and you are unable to delete it.
It allows you to create a much shorter path name which Windows can then cope with. Ideal with heavily nested network shares.

Also useful if you have an application that insists on running through a specific drive letter, and you want to run it locally, rather than sharing the drive out and connecting to it.

Examples

subst T: C:\Windows\System32

Associated Commands