Add Command Prompt to the Context menu
If you’re fond of the old Command Prompt (cmd.exe
),
you can add the traditional “Open Command window here” option back in
the context menu for file system folders and drives, using a Registry
edit.
Method 1
This method creates a new menu item named “Open command window here” by adding the necessary context menu registry entries.
- Open Notepad.
- Copy the following lines and paste them in Notepad:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\cmdprompt] @="@shell32.dll,-8506" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\Directory\shell\cmdprompt\command] @="cmd.exe /s /k pushd \"%V\"" [HKEY_CLASSES_ROOT\Directory\Background\shell\cmdprompt] @="@shell32.dll,-8506" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\Directory\Background\shell\cmdprompt\command] @="cmd.exe /s /k pushd \"%V\"" [HKEY_CLASSES_ROOT\Drive\shell\cmdprompt] @="@shell32.dll,-8506" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\Drive\shell\cmdprompt\command] @="cmd.exe /s /k pushd \"%V\""
- Save the file as “
cmdhere.reg
“ - Double-click the file to apply the settings to the registry.
Alternately, you can download the following registry file:
- Download cmd-here-windows-10.zip or here