If you’re like most people, you probably use your computer’s file system to organize your files. But what if you want to map a drive letter to a folder the easy way? In Windows, you can do this by following these steps:

  1. Open the Start menu and click on “Computer.”
  2. In the “Computer” window, click on “My Computer.”
  3. In the My Computer window, right-click on the drive that contains your files and select “Map Drive…” from the pop-up menu. (For example, if your drive is C: , right-click on C: and select “Map Drive…”). Map Drive… will appear in the pop-up menu. Click on it to open the Map Drive dialog box. In this dialog box, type in a letter (for example D: ) and then click on OK . The letter that you entered will now be mapped to the folder that is located at D: . ..

This ability has existed in Windows via the subst command for quite a while, so this will also work for you XP users as well.

Map a Drive Letter the Easy Way

The easiest way to assign a drive letter to a folder is to use a simple utility called Visual Subst, which gives you a nice graphical interface to assign drive letters, but also does something that the command line version can’t… you can set your virtual drives to apply again at startup.

You can download and run the utility without needing to install it, and then simply use the Browse button to select your path, and click the green plus symbol after choosing the drive letter.

At this point you should see the drive letter show up in the list. (Note that you can delete it by highlighting and choosing the red X icon, or change the path / letter by using the Save button.

If you want to save the drives, you’ll want to select the “Apply virtual drives on Windows startup” option.

Now when you open up your Computer window, you should see the new drive show up in the list.

The contents of the new M: drive will actually be the contents of my desktop folder.

Download Visual Subst from ntwind.com

Assign Drive Letters from the Command Prompt

If you are more the keyboard ninja type, or just want to know how to use the command line version, you can use the subst command to map drive letters the same way by using the following syntax:

For example, to map the M: drive to my desktop folder I would use the following command:

If you just want to see which drive letters are assigned, you can use subst without any arguments, as shown here:

To delete a drive letter you can use the /D switch instead of a path… for instance, to delete the M: drive that I just created, I would use the following syntax:

Now when you use the subst command to see the current drives, you’ll see nothing in the list.

I’ve found the subst command to be very useful, not just in shortening folder paths but also in one instance where I wanted to delete my second partition… I just reassigned the D: drive letter to point to C: and copied all the data over. That way the application shortcuts still worked without having to reinstall the application.