How to Map a Folder to a Drive Letter in Windows

Open a command prompt window., Use the SUBST command to map your folder to a drive letter., To try it, open a windows explorer window., To un-map the previously created drive letter, type SUBST X: /D , Note that when you reboot your computer, all...

9 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Open a command prompt window.

    On Windows Vista or Windows 7, open the command prompt as default user, not as Administrator.

    The reason will be explained later.
  2. Step 2: Use the SUBST command to map your folder to a drive letter.

    For example:
    SUBST X: "D:\Documents\John\Letters". , You should see a newly created drive letter X:, with which you can access your mapped folder directly. ,, To automatically map your folder when your system starts, put the SUBST command in a batch file, and put the batch file in your Autostart folder in the start menu.

    Advanced users can use the windows task scheduler, however this is not covered here. , These mappings are only created for the user who originally issued the SUBST command.

    When you login as "John"

    and you open a command prompt as "Administrator" and execute the SUBST command, "John" will not be able to see any mapped drive letters because the mapping was created for "Administrator".

    This is why you need to open the command prompt as a default user in Windows Vista and Windows
    7.

    When using the task scheduler, again make sure that the command is executed under the default user account.
  3. Step 3: To try it

  4. Step 4: open a windows explorer window.

  5. Step 5: To un-map the previously created drive letter

  6. Step 6: type SUBST X: /D

  7. Step 7: Note that when you reboot your computer

  8. Step 8: all mapped drive letters will be reset.

  9. Step 9: Execute the SUBST command using the account that issued it.

Detailed Guide

On Windows Vista or Windows 7, open the command prompt as default user, not as Administrator.

The reason will be explained later.

For example:
SUBST X: "D:\Documents\John\Letters". , You should see a newly created drive letter X:, with which you can access your mapped folder directly. ,, To automatically map your folder when your system starts, put the SUBST command in a batch file, and put the batch file in your Autostart folder in the start menu.

Advanced users can use the windows task scheduler, however this is not covered here. , These mappings are only created for the user who originally issued the SUBST command.

When you login as "John"

and you open a command prompt as "Administrator" and execute the SUBST command, "John" will not be able to see any mapped drive letters because the mapping was created for "Administrator".

This is why you need to open the command prompt as a default user in Windows Vista and Windows
7.

When using the task scheduler, again make sure that the command is executed under the default user account.

About the Author

T

Theresa Morgan

Creates helpful guides on hobbies to inspire and educate readers.

39 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: