WiseCleaner Think Tank
Encounter difficult computer problems?
All about maintenance and optimization of your Windows System.
Jan 20, 2026
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.
You might be wondering why you need to do it in the first place. Well, here are some of the most common reasons:
C:\Users\Me\Documents\Projects\MyStuff) to a simpler drive letter (e.g., Z:) for easier scripting and referencing.In this article, we’ll be showing you how to mount a folder as a drive in detail.
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"

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

To dismount the drive, open PowerShell in the same way, type subst Z: /d and press Enter.
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.

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

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.

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