Windows

How to Map Local Folders as Drives in Windows 11

Richard
Written by
Richard
Aug 11, 2022 Updated Apr 29, 2026 3 min read

Many users confuse mapping a local folder with mapping a network drive. A network drive connects your computer to a shared folder on another device or server. Mapping a local folder, often called a subst drive, simply assigns a drive letter to a folder already on your own computer. This makes deep folders easier to reach without needing third-party software.

Why do this?

Mapping a folder as a drive makes it much easier to access deep file paths. Instead of clicking through many folders, you can just click your new drive letter to get there instantly.

What happens when done?

You will see a new drive letter in your File Explorer. Anything you save to this drive is actually stored in your original folder. It is a virtual shortcut that makes file management cleaner and faster.

How to map a local folder as a drive letter

First, pick the folder you want to turn into a drive. Follow these steps:

  1. Right-click on a blank area of your desktop.
  2. Select New, then Shortcut.
Right-click menu on Windows 11 desktop to create a shortcut

In the box that asks for a location, you will type the subst command. For example, if you want to turn the folder C:\Users\GenericUser\Documents\Supplies into the Z: drive, type this exactly:

💻Code
subst Z: "C:\Users\Username\Documents\Supplies"
Typing the subst command to map a local folder as drive
  1. Click Next.
  2. Give your shortcut a name and click Finish.
Naming the new shortcut for the mapped local folder drive

When you double-click this shortcut, a new Z drive will appear in File Explorer. This drive acts just like a real hard drive.

New drive letter appearing in Windows 11 File Explorer

Make the drive start automatically

The drive will disappear when you restart your computer. To keep it active, you need to tell Windows to run your shortcut whenever you sign in.

  1. Right-click the shortcut you created on your desktop and select Copy.
Copying the shortcut file to the Windows startup folder
  1. Press the Windows key + R on your keyboard to open the Run box.
  2. Type the command below and press Enter:

shell:startup

Opening the Windows shell startup folder for persistent drive mapping
  1. This opens the Windows Startup folder in File Explorer. Note: This step may require admin privileges depending on your system settings.
  2. Paste your shortcut into this folder.
Shortcut file successfully placed in the Windows startup folder

Now, every time you log in, Windows will automatically create your drive for you.

Troubleshooting Connection Errors

If your drive does not appear, ensure the folder path exists. If you see an error, check if the drive letter is already taken by a USB drive or another partition. You can use the Command Prompt to see active mappings by typing subst and pressing Enter. If you need to remove a mapping, use the command subst Z: /d in the Command Prompt, replacing Z with your specific drive letter.

Summary

Mapping a folder as a drive is a great way to simplify your file organization. By using the subst command, you can assign a drive letter to any folder. Adding that shortcut to your startup folder ensures your virtual drive is ready to use every time you turn on your computer.

Why does my mapped drive disappear after restarting Windows 11?

The subst command is temporary by design. Windows clears these mappings during every shutdown or restart. To make the mapping persistent, you must place your shortcut in the Windows Startup folder or use a script in the Task Scheduler to run the command automatically every time you log into your user account.

Can I map a folder to a drive letter without using third-party software?

Yes, you can use the built-in subst command via the Command Prompt or by creating a shortcut. This is a native Windows feature that allows you to assign a drive letter to any local folder path without installing extra tools. It is safe, efficient, and requires no external software downloads.

How do I remove a mapped drive letter in Windows 11?

To remove a mapped drive, open the Command Prompt as an administrator. Type the command subst followed by the drive letter and the /d switch, such as subst Z: /d. Press Enter to execute. This will immediately disconnect the drive letter from the folder, and it will disappear from your File Explorer list.

Was this guide helpful?

Tags: #Windows 11
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

0 responses to “How to Map Local Folders as Drives in Windows 11”

Leave a Reply

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

Exit mobile version