How to Mount Folder as Drive in Windows 11

To mount a folder as a drive in Windows 11, you need to use the built-in subst command. The subst command is mostly used for mounting drives on a file explorer. If you want to mount a folder as a drive in Windows 11, here’s what you need to do. Important: The drives you will […] The post How to Mount Folder as Drive in Windows 11 appeared first on TechViral.

How to Mount Folder as Drive in Windows 11

To mount a folder as a drive in Windows 11, you need to use the built-in subst command. The subst command is mostly used for mounting drives on a file explorer. If you want to mount a folder as a drive in Windows 11, here’s what you need to do.

Important: The drives you will create will automatically unmount when you restart, shut down, or sign out from your user account.

1. Mount a Folder as a Drive in Windows 11

We will create a shortcut file to mount a folder as a drive in Windows 11.

1. Right-click on a blank space and select New > Shortcut.

New > Shortcut

2. On the Create Shortcut wizard, type:

subst X: "C:\full_path_of_folder)"

Create Shortcut wizard

Important: Replace ‘X’ with the drive letter you want to assign (make sure the drive letter is not in use). Also, replace ‘C:\full_path_of_folder)’ with the path of the folder you want to mount as a drive.

3. Click on the Next button. Type a name for the shortcut and click Finish.

type a name for the shortcut

4. You will see a new shortcut on your desktop screen. To mount your folder as a virtual drive, double-click on it. If the folder is not mounted, right-click on the shortcut and select Run as administrator.

new shortcut on your desktop

5. If you want to unmount the virtual drive, restart your computer.

Once unmounted, you need to mount the folder as a drive again in Windows 11 manually. You can repeat the process to mount a virtual drive or create a batch file and store it in the Startup folder to automate the process.

2. Automatically Mount a folder as a Drive in Windows 11 at Startup

Restarting the PC will unmount the drive from your computer. After the restart, you must rerun the shortcut file to mount your folder as a drive. If you want to automate this task, follow these steps.

1. Right-click on your desktop and select New > Text Document.

New > Text Document

2. In Notepad, copy and paste the following code:

@subst X: “C:\complete_path_of_folder”

copy and paste the code

Important: Replace ‘X’ with the drive letter you want to assign (make sure the drive letter is not in use). Also, replace ‘C:\full_path_of_folder)’ with the path of the folder you want to mount as a drive.

3. Click on the File menu in Notepad and select Save As.

Save As

4. On the Save as prompt, enter the file name with the .bat extension. Select All files on the Save as type and click Save.

.bat extension

5. Press the Windows Key + R button on your keyboard. On the Run dialog box, type shell:startup and press Enter.

shell:startup

6. This will open the Startup folder on your computer. Copy and paste the batch file into this folder.

copy and paste the batch file

3. Mount a Folder as a Drive using Windows Terminal

You can even use the Windows Terminal to mount a folder as a drive. Here’s what you need to do.

1. Type Terminal on Windows 11 Search. Right-click on the Terminal and select Run as administrator.

Run as administrator

2. Execute this command:

subst : "Full path of folder"​

Note: Replace with the drive letter you want to mount. Replace the Full path of the folder with the actual folder path.

execute this command

For example: subst G: “C:\Users\Amarnath\Desktop\Techviral Images”

3. Open File Explorer, and you will find the folder mounted as a drive.

4. To unmount the drive, execute this command:

subst : /d

Replace with the mounted drive letter.

unmount the drive

Also read: How to Format a Hard Drive or SSD in Windows 11

This guide is all about how to mount a folder as a drive on a Windows 11 computer. If you frequently access a specific folder in Windows 11, you can mount it as a drive.

The post How to Mount Folder as Drive in Windows 11 appeared first on TechViral.

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow