Monday, September 23, 2013

Windows 8: Map Folders To Drive Letters

If you regularly work with specific folders, and are tired of typing their path (e.g. C:\Windows\System32\Drivers or anything else) its possible to assign it a drive letter.  There's an old DOS command called SUBST (example: SUBST X: C:\{pathname}\foldername}) that can associate a drive letter with a specific folder path.

For example, to assign T: to C:\Windows\System32\Drivers, at the command prompt type SUBST T: C:\Windows\System32\Drivers and press the Enter key.  Now to access all the files in C:\Windows\System32\Drivers just type T:\.  This will work at the command prompt or in any application such as the File Explorer.

To delete the drive letter that was created by the substitution command, from the command prompt type SUBST T: /D.(just replace T: with the substitution drive letter that needs to be deleted).

No comments: