Associates a path with a drive letter. Used without parameters, subst displays the names of the virtual drives in effect.
subst [drive1: [drive2:]Path]
subst drive1: /d
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.
To create a virtual drive Z for the path B:\User\Betty\Forms, type:
subst z: b:\user\betty\forms
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: