Showing posts with label CommandLine. Show all posts
Showing posts with label CommandLine. Show all posts

Thursday, August 31, 2023

Add Command Prompt to the Context menu Windows 10, 11

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.

  1. Open Notepad.
  2. 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\""
    
  3. Save the file as “cmdhere.reg
  4. Double-click the file to apply the settings to the registry.

Alternately, you can download the following registry file: