Smallvoid.com
  • Home
  • About
  • Articles
  • Links
  • Forum

Mapping folder as a virtual drive letter using subst

September 26, 2007 by Snakefoot | 1 Comment

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
Tags:
  • command-line-switches, drive-mount, subst, user-account-protection
Category:
  • Tips,
  • Tips,
  • Tips,
  • Tips,
  • Tips,
  • Tips,
  • Tips,
  • Tips

Comments:

  1. Dave Kuhn says:
    3 September 2009 at 20:51

    Visual Subst: Be nice if a name could be substituted for the default. When I use it I get the drive letter, but it's name is that of the host drive.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

  • Extract files from a MSI package
  • Pro and cons for using multiple disk partitions
  • Make screendump of the desktop using Print Screen
  • Configure the Task Scheduler Log
  • Configure drive letter for the CD-ROM Drive

Recent Posts

  • Disable IPv6 imaginary tunnel network interfaces
  • Encrypted backup to OneDrive or DropBox
  • Description of soft and hard page faults
  • Windows 10 Upgrade with black screen
  • Wordpress 4.2 Upgrade

Meta

  • Log in
  • Entries feed
  • Comments feed