Today we are going to tell you about a secret DOS command "subst" which can be used to create a virtual drive in Windows Explorer for any of your desired folder.
For example, if you frequently use a folder "E:\Wallpapers", then you can create a virtual drive in Explorer which will directly go to this folder whenever you double click on it or access it from RUN or Command Prompt. It'll save a lot of time.
Here is how to do it:
1. Open Command Prompt and provide following command:
subst drive_letter: folder_path
for example, if you want to create a virtual drive letter H: for a folder "E:\Wallpapers", then use following command:
subst H: E:\Wallpapers
2. It'll immediately create a virtual drive H: which will represent the "Wallpapers" folder:
Before using subst command:
After using subst command:
3. As you can see. A new drive letter H: has been created which directly goes to "E:\Wallpapers" folder upon double-click.
4. If you want to delete this virtual drive, then provide following command:
subst drive_letter: /D
for example, we created H: drive in Step1, so our command to delete this virtual drive would be:
subst H: /D
5. You can view a list of all existing virtual drives by simply giving subst command without any parameter in Command Prompt.
A. Remember! You can't use existing drive letters for creating virtual drives, e.g. if you have 2 partitions C: and D:, then you can't use them for subst command.
B. If your folder path contains spaces, put the whole path in double-quotes ("").
C. You should not use chkdsk, diskcomp, diskcopy, format, label and recover commands on virtual drives created using subst command as these virtual drives are not real and these commands either will not work or can cause problems for the actual drives where the folders reside.
Other similar articles that may interest you
- Microsoft Launches Official “Building Windows 8″ Blog, Pre-Release Build to Arrive in Coming Months
- Customize “Single Click Select All” Feature in Mozilla Firefox Addressbar
- TZUtil: Hidden Secret Command Line Utility to Change Time Zone in Windows 7
- [Tip] Tweak and Customize Windows 8 Task Manager Functionality
- Add “Change Sound”, “Change Cursor”, “System Properties” and Other Useful Shortcuts in Windows Vista and 7 Desktop Context Menu
- How to Get Windows XP Style Classic “Alt+Tab” Switcher Screen in Windows Vista and 7?