Command Prompt Here
April 6, 2023
GIST reg file: https://gist.github.com/maphew/27b1ca7d3b276e0a2df8489aa9856815
Adding ‘Open command window here’ Option to the Windows 10 Context Menu of a Folder
Step One: To enable the Windows 10 open command prompt here, first press Windows key and + R from the keyboard to open the Run command. Type regedit and then hit enter from the keyboard to open the registry.
Step Two: Go to the following path:
HKEY_CLASSES_ROOT\Directory\shell\cmd
Step Three: Right-click the cmd key. Scroll to Permissions and then click it.
Step Four: Click Advanced.
Step Five: Click the Change link.
Step Six: Type your user account name and click ‘Check Names’ to verify it. Click OK when you are done.
Step Seven: Check ‘Replace owner on subcontainers and objects’. Click Apply and then OK.
Step Eight: In ‘Permissions for cmd’ window, select the Administrator account. Check Allow for full control option. Click Apply and then OK.
Step Nine: Inside the cmd key (right window), right click HideBasedOnVelocityId and then click Rename.
Step Ten: Rename the DWORD from HideBasedOnVelocityId to ShowBasedOnVelocityId, then hit Enter from the keyboard.
You are done. When you press shift from the keyboard and then right-click on any folder, you will have the ‘Open command window here’ option on the Windows 10 Context Menu.
Adding ‘Open command window here’ Option to the Context Menu of Background
Here are the few steps you need to take:
Step One: Press Windows key + R simultaneously to open the Run command. Type regedit and hit enter from the keyboard to open the registry.
Step Two: Go to the following path:
HKEY_CLASSES_ROOT\Directory\Background\shell\cmd
Step Three: Right-click the cmd key and then click Permissions.
Step Four: Click Advanced.
Step Five: Click the change link on top of the window in front of owner option.
Step Six: Type your user account name and click ‘Check Names’ to verify it. Click OK when you are done.
Step Seven: Check ‘Replace owner on subcontainers and objects’ option. Click Apply and then OK.
Step Eight: In permissions window, choose the administrator user. Check Allow for Full Control option, click Apply and then OK.
Step Nine: Inside the cmd key (right window), right-click the HideBasedOnVelocityId DWORD and then click Rename.
Step Ten: Change the DWORD name from HideBasedOnVelocityId to ShowBasedOnVelocityId and press Enter from the keyboard.
From < https://www.itprotoday.com/windows-10/add-open-command-window-here-windows-10-context-menu>
…
I solved it in simplier way, without dancing around with permissions: created a separate registry key, called it normal_cmd.
Advantages: it doesn't require to hold down shift and has cmd.exe icon, so it's much easily to distinguish it and press in context menu.
Here is my regfile:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\normal_cmd]
@="@shell32.dll,-8506"
"Icon"="cmd.exe,0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\normal_cmd\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\shell\normal_cmd]
@="@shell32.dll,-8506"
"Icon"="cmd.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\normal_cmd\command]
@="cmd.exe /s /k pushd \"%V\""
From < https://www.itprotoday.com/windows-10/add-open-command-window-here-windows-10-context-menu>