Skip to content
Follow
Windows

How to Map Local Folders as Drives in Windows 11

Richard
Written by
Richard
Aug 11, 2022 Updated Jul 14, 2026 3 min read
How to Enable or Disable Phone Link in Windows 11
How to Enable or Disable Phone Link in Windows 11

Mapping a local folder as a drive in Windows 11 means you give a regular folder on your computer a drive letter, like Z:.

This makes it super easy to get to folders you use a lot, as if they were their own separate disk drive. For example, you could make your `📁C:\MyProjects` folder appear as the `P:` drive.

Clicking `P:` in File Explorer then instantly opens that `📁C:\MyProjects` folder. This feature uses a built-in Windows command called `subst`, so you don’t need any extra software.

Anything you save to this new mapped drive goes straight into the original folder on your computer. It’s like having a super-fast shortcut to reach your important files.

⚡ Quick Answer

Map a local folder as a drive in Windows 11 by creating a shortcut that uses the “subst” command. Type subst [DriveLetter]: “[FolderPath]” into the shortcut’s location, then place the shortcut in your Startup folder to make it persistent after restarts.

How to map a local folder as a drive letter

Mapping a local folder as a drive letter in Windows 11 makes accessing your files quicker and easier. This process creates a shortcut that acts like a new drive, appearing in File Explorer with its own icon. You can organize and get to your frequently used folders without digging through multiple menus.

  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
windows 11 create shortcut

In the box that asks for the location, 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
windows 11 create drive shortcut
  1. Click Next.
  2. Give your shortcut a name and click Finish.
Naming the new shortcut for the mapped local folder drive
windows folder name ox

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
local drive in file explorer

Make the drive start automatically

Mapped local folder drives can start automatically when your Windows 11 computer turns on by placing the folder's shortcut into the Startup folder. This Startup folder ensures the virtual drive is ready to use as soon as Windows loads, so you do not have to manually recreate the mapped drive each session.

  1. Right-click the shortcut you created on your desktop and select Copy.
Copying the shortcut file to the Windows startup folder
right click and copy file 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
windows shell startup
  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
copy content in startup folder

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

Troubleshooting Connection Errors

If your mapped drive isn’t showing up in Windows 11, or if you’re running into errors, it’s worth checking that the folder path is correct and that the drive letter isn’t already in use.

Summary

Mapping a local folder as a drive in Windows 11 simplifies file access by assigning a familiar drive letter, and setting it to start automatically ensures it’s always ready.

Why does my mapped drive disappear after restarting 🪟 Windows 11?

Your mapped drive disappears after restarting Windows 11 because the subst command is temporary and cleared on reboot.

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

Yes, you can map a folder to a drive letter in Windows 11 without any third-party software by using the built-in subst command.

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

You can remove a mapped drive letter in Windows 11 by opening the Command Prompt and using the subst command with the /d switch.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
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.

📚 Related Tutorials

How to Mount a Folder as a Drive in Windows 11
Windows How to Mount a Folder as a Drive in Windows 11
How to Map Network Shares as Drives in Windows 11
Windows How to Map Network Shares as Drives in Windows 11
How to Copy File and Folder Paths in Windows 11
Windows How to Copy File and Folder Paths in Windows 11
How to Partition a Hard Drive in Windows 11
Windows How to Partition a Hard Drive in Windows 11

0 Comments

Leave a Comment

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