If you want to map a local folder as drive with letter in Windows 11, here is how you can do that. It is possible to do such things with the help of the Command Prompt and predefined command. This article explains the exact method along with the required command so that you can map any local folder with drive letter in Windows 11 as well as Windows 10.
How to Map Local Folder as Drive with letter in Windows 11
To map local folder as drive with letter in Windows 11, follow these steps:
- Create a folder you want to map.
- Right-click on it and select the Copy as path option.
- Right-click on the Start Menu.
- Select Windows Terminal (Admin) option.
- Click on the Yes button in the UAC prompt.
- Enter this command: subst drive-letter: folder-path
To learn more about these steps, continue reading.
First, you need to create a folder or select a folder you want to map as drive with letter on your computer. You can create the folder anywhere, including C or the system drive.
Then, you need to copy the path of the folder. Generally, you can find the path from the Properties panel. However, Windows 11 allows users to do the same from the right-click context menu. Therefore, right-click on the desired folder and select the Copy as path option.
Then, right-click on the Start Menu and select the Windows Terminal (Admin) option. Following that, click on the Yes button in the UAC prompt to open Windows Terminal with administrator privilege.
Once done, enter this command in the Command Prompt instance:
subst drive-letter: folder-path
Let’s assume that you have a folder named TWCdemo on your Desktop. On the other hand, you need to replace the drive-letter with the desired and available drive letter. In other words, your command will look like this:
subst H: C:\Users\Sudip\Desktop\TWCdemo
You can check the assigned drive letter by entering the subst command in the Command Prompt.
On the other hand, if you want to remove the mapping, you can enter this command:
subst H: /D
Here, H is the drive letter you set earlier.
Read: How to map or add a Network Location or Map FTP Drive in Windows
How do I map a drive to a specific letter?
To map a drive to a specific letter, you need to use the Disk Management panel. This utility helps you change the drive letter in Windows 11/10 PC without any third-party app. On the other hand, you can use the DISKPART command to get the same thing done. Both options do the same thing.
Read: How to mount a Drive as Folder rather than Letter in Windows 11
Can I assign a drive letter to a folder?
Although the Disk Management panel doesn’t have the option to assign a drive letter to a folder, you can use the Command Prompt to get it done. You can make use of the subst command to assign any drive letter to a folder. It is recommended to go through the aforementioned steps to get a detailed overview.
That’s it! Hope it helped.