WiseCleaner Think Tank

Encounter difficult computer problems?
All about maintenance and optimization of your Windows System.

Home > Think Tank > How to Mount a Folder as a Drive in Windows 11

How to Mount a Folder as a Drive in Windows 11

Jan 20, 2026

What Mount a Folder as a Drive Means

You assign a drive letter (for example, Z:) that points to an existing folder (for example, C:\Projects\MyApp). After mapping, the folder behaves like a separate drive in File Explorer, the Command Prompt, and many other applications. 

Why Mount a Folder as a Drive

You might be wondering why you need to do it in the first place. Well, here are some of the most common reasons:

  • Convenience: Provides quick, single-letter access to deep folders, making them easier to reach in File Explorer.
  • Application Compatibility: Tricks older programs that expect to find data on a specific drive letter (like D:) into accessing files in a mounted folder.
  • Shorten File Paths: Reduces long, complex file paths (e.g., C:\Users\Me\Documents\Projects\MyStuff) to a simpler drive letter (e.g., Z:) for easier scripting and referencing.
  • Unify Storage: Allows you to treat files from different locations (like cloud storage or network shares) as if they were on a single local drive. 

In this article, we’ll be showing you how to mount a folder as a drive in detail.

Use Windows PowerShell 

The fastest and most widely used method to mount a folder as a drive letter is the built‑in PowerShell. Here is how:

1. Press Win+ X to select Terminal to run. 

2. In PowerShell, type the following command:

subst Z: "C:\Path\To\Folder" 

The Z can be substituted for any driver letter currently not in use, and the file path can be changed to anything as well. For example: subst Z: "C:\Users\Me\Documents"

In PowerShell, type the command: subst Z: "C:PathToFolder"

3. The folder will be mounted as a drive. You can check it in Explorer.

You can check the mounted folder in Explorer.

To dismount the drive, open PowerShell in the same way, type subst Z: /d and press Enter

Create a Desktop Shortcut in Startup 

To make it persistent across reboots, you can create a small .bat file with your subst command and have it activated on startup every time. 

1. Right-click the Desktop and select New> Shortcut from the menu.

2. Type command line code, e.g., subst Z: "C:\Users\Me\Documents" and press Next.

Type command line code, and press Next.

3. Give a name for your shortcut and press the Finish button. Then double-click the shortcut to execute. 

Give a name for your shortcut and click Finish.

4. Copy the shortcut you just created to this path: %AppData%\Microsoft\Windows\Start Menu\Programs\Startup, ensuring that your folder will mount as a drive every time you log in. 

Copy the shortcut you just created to Startup folder.

To remove the mounted folder using a Shortcut, follow these steps:

1. Right-click on Desktop and select New > Shortcut.

2. Enter this: subst Z: /d

Troubleshooting & Tips

  • If a mapped letter doesn’t appear in Explorer but works in PowerShell, try restarting Explorer or logging off and on.
  • Avoid mapping system-critical folders (Windows, Program Files).
  • Do not move or delete the original folder. Otherwise, the mounted drive won’t be accessible. 

Conclusion

Mounting a folder as a drive in Windows 11 is a useful trick that assigns a fixed drive letter to a deeply nested folder. This helps with compatibility for older programs that require short paths and makes large project directories feel as convenient as a top-level storage device in File Explorer.

Latest
How to Fix the VCRUNTIME140.dll Missing Error in Windows 11How to Automatically Clear Microsoft Edge Browsing Data on ExitHow to Disable Access to Settings in Windows
Read more >>
Recommend
Understanding Windows Power Plans: Balanced, Battery Saver, High Performance, and Ultimate PerformanceHow to Pause Windows Update for 100 YearsShould I enable or disable Trim of SSD?
Read more >>
Hottest
How to Install a macOS in VMware Workstation PRO 17How to Enable Task Manager Option in Taskbar Menu on Windows 11How to Fix Office Application Error 0xc0000142
Read more >>

wisecleaner uses cookies to improve content and ensure you get the best experience on our website. Continue to browse our website agreeing to our privacy policy.

I Accept