Windows

How to Map Local Folders as Drives in Windows 11

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

Have you ever wanted to turn a specific folder into its own drive letter? Windows allows users to map network folders as a drive. By using a simple trick, you can map a local folder to look like a separate hard drive in Windows 11.

We previously showed you how to mount an external or internal drive in a folder rather than a drive letter. This method does the opposite by making a folder behave like a drive.

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\Username\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.

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.

How do I map a local folder as a drive in Windows 11?

To map a local folder as a drive in Windows 11, create a shortcut and use the 'subst' command. For example, type 'subst Z: "C:UsersRichardSupplies"' in the shortcut's location box to create a Z drive for that folder.

What is the 'subst' command in Windows?

The 'subst' command in Windows allows you to assign a drive letter to a specific folder path. This makes it easier to access the folder as if it were a physical drive.

Will the mapped drive remain after restarting my computer?

No, the mapped drive will not persist after restarting your computer. To ensure it mounts automatically, you need to place the shortcut in the Windows Startup folder.

Can I use any drive letter when mapping a folder?

Yes, you can use any available drive letter when mapping a folder. Just make sure the letter you choose is not already in use by another drive.

How do I access the Windows Startup folder?

To access the Windows Startup folder, press the Windows key + R to open the Run dialog, then type 'shell:startup' and press Enter. This will open the Startup folder where you can paste your shortcut.

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