How to turn a Folder into a Drive on Windows 11

|

|

This article describes how to use the ‘subst’ command in Windows 11 to mount a folder as a drive for quick access and organization. It outlines a simple process of assigning a drive letter to a folder via Windows Terminal, making it accessible through File Explorer, and includes instructions for reversing the operation.

This article explains how to mount a folder as a drive in Windows 11.

Mounting a folder as a drive can be particularly useful if you access certain files regularly. It allows you to access your data quickly from a dedicated drive letter. Windows 11 includes a built-in utility called ‘subst‘ to map any of your folders as a drive.

With just a few simple steps, you can create a virtual drive in Windows 11 using the ‘subst‘ command and easily access your files. It can also help you organize your files and make them easily accessible.

Below, we’ll walk you through the process step-by-step.

Mount a folder as a drive with Windows Terminal

To mount a folder as a drive, open the Windows Terminal app. Then select Windows PowerShell or the Command Prompt.

On the command line console, type the command below to list any folders mounted as drives.

subst

Any folder already mounted will be listed when you run the command above.

Use the Subst Command

In the Terminal console window, type the subst command, the letter you want to assign to the new drive, and the folder path you want to mount.

subst X: C:\Your\Folder\Path  

Replace X with your preferred drive letter that is not currently in use. Also, replace C:\Your\Folder\Path with the full path to the desired folder.

Press Enter to execute the command.

If you have executed the command correctly, Windows will now use the specified letter for the folder, accessible via ‘This PC‘ or ‘My Computer.’

For example, you can mount the Business folder within your Documents folder with a drive letter B by running the command below.

subst B: "C:\Users\Richard\Documents\Business"

You should see a new drive mounted to the folder in File Explorer.

Windows 11 mount a folder as drive

Using the command, you’ve successfully mounted a folder as a drive in Windows 11. If you ever want to remove this virtual drive, you can do so using the Command Prompt with the /D switch:

subst B: /D

Replace B with the letter of the drive you want to remove.

That should do it!

Conclusion:

This post showed you how to mount a folder as a drive in Windows 11. Please use the comments form below if you find errors or have something to add.

Like this:



Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.