Mapping folder as a virtual drive letter using subst

26 September 2007 by Snakefoot | Comment » | Trackback Off
It can be useful to map a very deep nested folder as a drive letter, so it is easier to access by Windows Explorer along with all other applications. The command line utility subst.exe provides this functionality:

Subst x: C:\Very\Long\Folder\Path

To free the assigned drive-letter again use the subst command like this:

Subst x: /D

Note when restarting the computer then all mapped drive letters are forgotten. One can put the subst command into a startup-script which is launched at startup, so the mapping is done automatically again at user login.

Note the utility Visual Subst is a more GUI friendly utility for managing virtual drives created with subst (Has option to mount drives at boot / startup).

Note Windows Vista User Account Protection introduces a special behavior with Subst.exe as the drive-letter is only seen by the user-account that has performed the mapping. This means that when changing between regular user and elevated user then, one has to perform the subst command in both contexts.

Credits SearchWinComputing.com

Updated: 12 October 2007

Leave a comment


You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>