Skip to content
Windows

How to Map Local Folders as Drives in Windows 11

Richard
Written by
Richard
Updated 7 min read
How to Enable or Disable Phone Link in Windows 11
How to Enable or Disable Phone Link in Windows 11
Before you start
  • 12 steps
  • Needs administrator rights
  • Includes a restart or sign-out

Mapping a local folder as a drive in Windows 11 assigns a drive letter, such as Z:, to any folder on your PC. The folder then appears as a separate disk in File Explorer. This turns a deeply buried folder into a top-level drive without extra software.

Windows does this with a built-in command-line tool named subst (short for “substitute”). Anything you save on the new drive goes straight into the original folder, so the drive works like a direct shortcut to your files. The tool is part of Home and Pro editions of a currently supported Windows 11 version (25H2 or 26H2), so the steps below are the same on either edition.

⚡ Quick Answer

Use the subst command to map a local folder as a drive in Windows 11. Create a desktop shortcut whose location is subst Z: “📁C:\Users\Username\Documents\Supplies”, then double-click it. The folder appears under This PC as the Z: drive. The mapping clears at restart, so copy the shortcut into the Startup folder to restore it at every sign-in.

Advertisement

How to map a local folder as a drive letter

You can map a local folder to a drive with the built-in command prompt tool, or with the Create Shortcut wizard, which wraps the same command in a double-clickable shortcut. Either way, the folder gets its own letter, like D: or E:. It then shows up under This PC in File Explorer, so you can open it without clicking through several subfolders each time.

💡TipThe shortcut method below is quicker to repeat, and you need it for the automatic startup setup later. Before you start, pick a letter that no other drive uses. Letters near the end of the alphabet, such as Z:, rarely clash with internal disks, USB drives or card readers.
Advertisement

These steps map a local folder to a drive letter by creating a shortcut that runs the mapping command for you.

  1. Right-click a blank area of your desktop. A context menu opens.
  2. Select New Shortcut. The Create Shortcut wizard opens and asks for the location of the item.
Right-click menu on Windows 11 desktop to create a shortcut
windows 11 create shortcut
  1. Type the subst command in the location box. For example, to turn the folder C:\Users\GenericUser\Documents\Supplies into the Z: drive, type this exactly:
    💻Code
    subst Z: "C:\Users\Username\Documents\Supplies"
  2. Click Next. The wizard now asks what you want to call the shortcut.
  3. Name the shortcut, then click Finish. Any name works, such as “Map Z Drive”. The shortcut now appears on your desktop.
  4. Double-click the new shortcut. A command window may flash on screen for a moment and then close. That is normal.
  5. Open File Explorer and select This PC. The new Z drive appears in the drives list.
Naming the new shortcut for the mapped local folder drive
windows folder name ox
⚠️WarningThat’s it. You now have a Z drive that acts like a real hard drive. Files you save there are stored in the original folder, and files you delete there are deleted from it too.
Advertisement

A mapped drive made this way does not survive a restart, and it usually disappears when you sign out. To get it back, run the shortcut again or use the startup method below. To remove the drive without restarting, run subst with its delete option. Command Prompt shows the exact syntax in the subst help text. Removing the drive does not delete the folder or its files.

Windows also keeps drive mappings separate for normal and elevated (administrator) sessions. If an app running as administrator can’t see your Z drive, that is why. Map the drive again from an elevated session if you need it there.

New drive letter appearing in Windows 11 File Explorer
local drive in file explorer

Make the drive start automatically

You can make your mapped drive start automatically by copying its shortcut into the Startup folder (a folder whose contents Windows runs each time you sign in). Windows then runs the mapping command in the background at every sign-in, so the drive is waiting for you without extra steps.

This fixes the main weakness of subst, which is that the mapping is lost at restart. You only need to do it once per drive letter.

Advertisement

Know three limits before you start. The startup shortcut only works for the account whose Startup folder it sits in, so other accounts on the PC need their own copy. The mapping is per-user, which means it exists only in that account’s session. The target folder must also exist and be available at sign-in, so it cannot live on a drive that is not yet connected, such as an external disk you plug in later.

  1. Copy the shortcut you created on your desktop. Right-click it and select Copy, or click it once and press Ctrl+C. Windows gives no confirmation, but the shortcut is now on the clipboard.
Copying the shortcut file to the Windows startup folder
right click and copy file folder
  1. Press Win+R to open the Run box. A small Run window appears at the bottom left of the screen.
  2. Type the command below and press Enter. It opens the Startup folder for your account.

shell:startup

Opening the Windows shell startup folder for persistent drive mapping
windows shell startup
  1. Check that the Startup folder is open in File Explorer. It is probably empty or holds only a few items. Note: This step may require admin privileges depending on your system settings. If Windows asks for permission, approve it or sign in with an administrator account.
  2. Paste your shortcut into this folder. Right-click an empty area and select Paste, or press Ctrl+V. The shortcut now appears in the folder.
Shortcut file successfully placed in the Windows startup folder
copy content in startup folder

That’s it. Windows now runs the shortcut and creates your drive each time you sign in to this account. To test it, sign out and sign back in, then open File Explorer and select This PC. You should see the drive listed.

Advertisement

To undo this, open the Startup folder again and delete the shortcut. No restart or sign-out is needed for the change to take effect, and the drive will not come back at your next login.

Troubleshooting Connection Errors

If your mapped drive isn’t showing up in Windows 11, or if you get errors, verify that the folder path is correct and that the drive letter isn’t already in use.

  • Check the path. Open the folder in File Explorer, copy the path from the address bar, and paste it into the shortcut. This catches typos and missing subfolders.
  • Check for spaces. A path that contains spaces needs quotation marks, or the command will not work.
  • Check the drive letter. Look in This PC for any drive already using that letter, including USB sticks, card readers and network drives. Pick a different letter if there is a clash.
  • Run the shortcut again. If you restarted or signed out, the mapping is gone until the shortcut runs again or the startup shortcut does it for you.
  • Check the account. The startup shortcut only runs for the account whose Startup folder holds it, and the target folder must be available at sign-in.
  • Check which session you are in. A drive mapped in a normal session will not appear in an elevated one, and the reverse is also true.

Summary

Mapping a local folder as a drive in Windows 11 speeds up file access by giving the folder a familiar drive letter. Setting the shortcut to run at startup keeps the drive ready at every sign-in. The whole setup uses only tools that ship with Windows, and you can undo it at any time by deleting the shortcuts.

Frequently asked questions

How do I Map to a network drive?

To map a network drive in Windows 11, open File Explorer, select This PC, then choose Map network drive from the Computer tab. Pick a drive letter, enter the shared folder's network address in the Folder box, and tick Reconnect at sign-in to keep it after a restart. Select Finish, then enter a username and password if prompted.

How do I create a shared drive?

Windows does not create a shared drive. Instead, you share an existing folder. Right-click the folder, choose Give access to, then Specific people. Add the users you want, set their permission level, and select Share. Windows then shows a network address that others can use to open the folder.

How do I Map a network drive in Windows 11 using an IP address?

Use the same Map network drive wizard, but type the IP address in the Folder box. Enter two backslashes, the IP address, another backslash, and then the share name. Choose a drive letter, tick Reconnect at sign-in if you want it kept, and select Finish. Enter the username and password the other PC requires.

Still have a question?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

0 Comments

Leave a Comment

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