Subst
Subst
(SUBSTitute) An external DOS/Windows command that creates a virtual drive, which is used as a shortcut to a folder. For example, the drive letter S: can be substituted for C:\\SAM\\BUDGETS and be used instead of that explicit folder reference. The command examples #1 and #2 below accomplish the same thing:D:\\ANYWHERE>subst s: c:\\sam\\budgets#1 D:\\ANYWHERE>type s:myfile.txt#2 C:\\SAM\\BUDGETS>type myfile.txt
CANCEL THE SUBSTITUTED DRIVE
To delete the S: virtual drive, type:
subst s: /d