Command Prompt is the command-line which enables users to execute different programs and commands. Microsoft is slowly removing command prompt support from all its major Windows platforms. PowerShell is the alternative to Command Prompt which supports almost all the commands of DOS and much more. Some users still want to run Command Prompt instead of PowerShell.
If the program you want to run in Command Prompt is not listed in PATH variable, the Command Prompt will give you an error that it could not find the executable file. For this we need to manually go to the folder where that particular program is placed. One way of doing this is to type in the complete path of the file. Another way is to directly open the command prompt windows inside the folder. The second approach is more visual and easy to implement.
In this article, we will discuss about different techniques by which we can open command windows in a folder, the most popular being “Open Command Windows Here” context menu item. Let’s start.
Add Open Command Window Here to context menu using Registry Editor
Click Windows + R then type regedit.
Registry editor window will open. After that go to HKEY_CLASSES_ROOT. Further go into Directory\shell\cmd
and right click Permissions. The following window will appear.
Then click on Advanced option.
After that click on change on the top of the window
Type your username in “Enter the object name to select” and then click on check name to validate that name.
Press Apply and then OK. When you are done with that Administrative modes in Group or user names of permissions for cmd window and tick Allow on Full control. Click Apply and then OK
When you are done with that, click on HideBasedonVelocityID and Rename it ShowBasedonVelocityId
Now when you click Shift and right click you will see the option “Open Command Window here”
This will permanently add “Open Command Window here” in Windows Context menu. After editing the Registry, you will be able to open command prompt by right clicking inside any folder and selecting “Open Command Window Here”.
Add Open Command Window Here using the REG file
This is basically the same method listed above. For your ease, we have created a REG file for all the actions mentioned above. You just have to download and run the REG file. It will automatically add the desired values inside the Windows Registry.
This will add the context menu settings for admin command prompt.
How to get back Command Prompt in Win+X menu?
In order to change the Windows Powershell options with Command Prompt go to Settings –> Personalization –> Taskbar. After that turn off the option of “Replace Command Prompt with Windows Powershell Option in the menu when i right click the start button or press Windows key +X”.
The Command Prompt still remains an important part of Windows Operating System and using the methods discussed above, you will be able to make productive use of your time by using shortcuts. What is your favorite method of running command prompt without typing in the folder paths?