How to Map a Folder to a Drive Letter in Windows
Tired of browsing through long paths? There is a way you can map a drive letter to a long path. This will save a lot of time with frequently accessed folders. For example, you can map a long path like D:DocumentsJohnLetters to the drive...
Method 1 of 2:
Thru Command Prompt
- Open a command prompt window. On Windows Vista or Windows 7, open the command prompt as default user, not as Administrator. The reason will be explained later.
- Use the SUBST command to map your folder to a drive letter. For example: SUBST X: "D:DocumentsJohnLetters".
- To try it, open a windows explorer window. You should see a newly created drive letter X:, with which you can access your mapped folder directly.
- To un-map the previously created drive letter, type SUBST X: /D
- Note that when you reboot your computer, all mapped drive letters will be reset. To automatically map your folder when your system starts, put the SUBST command in a batch file, and put the batch file in your Autostart folder in the start menu. Advanced users can use the windows task scheduler, however this is not covered here.
- Execute the SUBST command using the account that issued it. These mappings are only created for the user who originally issued the SUBST command. When you login as "John", and you open a command prompt as "Administrator" and execute the SUBST command, "John" will not be able to see any mapped drive letters because the mapping was created for "Administrator". This is why you need to open the command prompt as a default user in Windows Vista and Windows 7. When using the task scheduler, again make sure that the command is executed under the default user account.
Method 2 of 2:
- Open My Computer from your Windows desktop.
- Click Map Network Drive from the Tools menu.
- Select a drive letter that you want to assign to the mapped folder in the Drive box. You will be able to rename this mapped drive to anything you want.
- Type the server and share name of the computer or folder you want or Click Browse to find the computer or folder, in the Folder box.
- Click the Finish button.
4.7 ★ | 3 Vote
You should read it
- How to completely hide a folder with a single command on Windows
- Instructions to mount the hard drive into a folder on Windows 10
- How to change the download folder Windows Update in Windows 10
- How to Open Folders in CMD
- How to mount a folder as a virtual drive on Windows
- Warning: This simple command can damage your Windows computer's drive
- What is the ProgramData folder on Windows?
- Instructions to delete Windows.old folder on Windows 7/8 / 8.1?
- Change directory template in Windows 10
- 6 ways to rename files and folders in Windows 10
- Use CMD to create an 'undeleted' folder on Windows
- How to open folders hidden on the system with the Shell command on Windows?
Maybe you are interested
How to use the file search command on Windows, find saved files
Why is tldr command better than man command in Linux?
Should I use PowerShell or Command Prompt?
What to do when open command window here does not appear?
How to switch users on the Linux command line
How to fix Mac Homebrew error 'zsh: command not found: brew'