If you are a frequent user of command prompt you will certainly find it annoying to change the directory every time. Here is a neat trick to open a command prompt window directly into a specific folder or drive. This can save you from typing the CD command every time you open the command prompt window.
To do this press and hold Shift key and right click the folder or drive you want to open the command prompt window into. Release Shift key and you will find a new option in the menu that came up: Open command window here. Select that option and a command prompt window will open with the directory of the folder or drive you right clicked.
There is another trick with regedit to bring up the Open command window here option without having to hold the Shift key. To do this follow the steps below.
Step 1: Goto start menu and type regedit into the search box and open the registry editor.
Step 2: Navigate to HKEY_CLASSES_ROOT\Directory\shell\cmd.
Step 3: Rename or delete the value Extended. I recommend to rename it to something like XExtended so that you can easily revert the changes to default. Renaming or deleting this key will bring the Open command window here even if you don't hold the shift key while right-clicking.
Step 4: Repeat the step 3 for the value named Extended in HKEY_CLASSES_ROOT\Drive\shell\cmd. This will enable you to bring up the option in the menu when right-clicking drives.
If you find the above steps hard to follow here is an easy alternative. Just paste the following code into notepad and save it as a batch file.
After you save the batch file right click the batch file and select Run as administrator from the menu. The batch will do all the work for you automatically!
Please become a member of this site and share the post!
No comments: