You shall notice that by default whenever you open the command prompt by going to run > cmd then it opens in the profile directory path. At times you need to open the command windows within the existing folder path that is open instead of PowerShell. This tutorial shows you how to open CMD in the current folder for Windows 10.
This is a command-line with which users are able to execute different commands and programs. Microsoft is removing its support from all the major platforms of windows. PowerShell being an alternative provides support to all the commands of DOS and many others. There are users who still emphasize to use it.
If you have a program on this which is not listed in the PATH variable then it shall give you an error that it is not able to find that executable file. Now, for this, you need to go to the folder manually where the specific program is located. One way is that you type in the complete path of the file or you can also open it directly inside the folder. We recommend the second approach as it is more visual and easy to implement.
If you are a guest user then you just need to open the folder > file menu > open windows PowerShell. You shall have the option to open it as an administrator.
Table of Contents
5 Ways on How To Open Command Prompt Inside a Folder on Windows 10
Open Command Window Here with Registry Editor
- In the firsts step you need to click on Windows + R, type in Regedit. This shall open for you the Registry Editor.
- After this, you need to go to HKEY_CLASSES_ROOT, and then go into Directory\shell\cmd.
- Click right on “permissions”.
- Now you need to select the “advanced” option.
- After this tap on “change” present at the top of the window.
- Add in your username there in the “Enter the object name to select”, click on “check name” in order to validate that name.
- Hit on “apply” and then “ok”. Once you are done with those administrative modes in group or usernames of permissions for the cmd windows you need to tick on “allow” on the full control. Click on “apply” and then “ok”.
- Now, you need to click on HideBasedonVelocityID and rename this to ShowBasedonVelocityid.
- As you press on the shift button and click right you shall be able to see the option “open command window here”.
This shall add-in “open command window here” permanently to the windows context menu. After editing registry, you shall be able to open this by clicking right inside any folder and clicking on “open command window here”.
Adding “Open Command Window here” via REG
This has the same method which has been explained above.
- In the first step, you need to download the REG file.
- Run it.
- It shall add the desired values inside the windows registry automatically.
If values do not come after running this file then all you need to do is restart windows explorer or the system.
For this you need to download the following file:
This shall add in a context menu option for the admin command prompt.
Using CMD in File Explorer
- In the first step, you need to go to the desired folder, click on the location bar of windows explorer.
- After this you need to type in “cmd”, click on “enter”.
- Command prompt shall open in the folder.
The only drawback of this method is that it shall open this in the regular user privilege mode and not in the administrative mode. To open in this mode:
- In the first step, you need to press Windows + R and type in cmd.
- After this, you need to click on Ctrl + Shift + Enter inspite of just clicking enter to open it up in this mode.
- You can also open a PowerShell window by using the same method/technique. For this, you need to go to the folder, type in PowerShell in the file explorer bar. This shall open it in the same folder location or path.
Open Command Prompt using Keyboard Shortcuts
If you do not have any time then this is the easiest of all the methods.
- In the first step, you need to go to the required folder.
- After this, you need to click on Shift + Right-click mouse button anywhere in the folder window.
- Now, click on the “open command window here” option there from the context menu.
Getting Command Prompt Back in Win+X
If you want to change the Windows PowerShell options with the command prompt then:
- You need to go to settings > personalization > taskbar.
- After this, you need to turn off the option of “release command prompt with windows PowerShell” option in the menu when we click right on the start button or press Windows Key + X.
Command prompt remains quite an important part of the windows OS and using the methods explained above you shall be able to make productive use of your time by using shortcuts.
It is now your turn to try the above however we have covered every step in our guide for how to open command-prompt in a folder on Windows 10. This method is useful because you are using CMD instead of PowerShell. We have also shared a REG file that helps you create an open CMD in folder shortcut for quick access.