Open Command Window Here - Add or Remove

Page 1 of 2 12 LastLast
    Open Command Window Here - Add or Remove

    Open Command Window Here - Add or Remove

    How to Add or Remove "Open Command Window Here" from Context Menu in Windows
    Published by
    Designer Media Ltd


    How to Add or Remove "Open Command Window Here" from Context Menu in Windows

       Information
    This will show you how to add or remove Open Command Window Here from the context menu of the desktop, folders, and drives in Vista, Windows 7, and Windows 8.

    You must be logged in as an administrator to be able to do the steps in this tutorial.


    EXAMPLE: Open Command Window Here
    NOTE: This is when you press and hold the Shift key and right click on a folder or drive, or right click on the desktop, to click on Open Command Window Here to open a command prompt with the focus at the folder or drive.
    Open Command Window Here - Add or Remove-default.jpgOpen Command Window Here - Add or Remove-removed.jpg

    Here's How:
    1. To Add "Open Command Window Here" to Context Menu
    NOTE: This is the default setting.
    A) Click/tap on the Download button below to download the file below, and go to step 3 below.
    Add_Open_Command_Window_Here.reg
    2. To Remove "Open Command Window Here" from Context Menu
    A) Click/tap on the Download button below to download the file below, and go to step 3 below.
    Remove_Open_Command_Window_Here.reg
    3. Save the .reg file to the desktop.

    4. Double click/tap on the downloaded .reg file to merge it.

    5. When prompted, click on Run, Yes (UAC-Windows 7/8) or Continue (UAC-Vista), Yes, and OK to approve merging the .reg file.

    6. You can now delete the downloaded .reg file if you like.
    That's it
    Shawn









  1. Posts : 29
    Windows 7 Ultimate x64
       #1

    IMO you should also include the

    Code:
    HKEY_CLASSES_ROOT\Directory\Background\shell
    keys for a more complete solution.
      My Computer


  2. Posts : 71,980
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Hello svnpenn,

    It's not on the desktop context menu by default, but I added it just for you. :)
      My Computer


  3. Posts : 29
    Windows 7 Ultimate x64
       #3

    Excellent sir, excellent.

    :)
      My Computer


  4. Posts : 2
    Windows XP PRO, Windows 7 Ultimate, Ubuntu/Kubuntu Linux
       #4

    Created SevenForums Account Just to Say "Thanks!"


    Thanks for providing this extremely handy tool and guide!!
      My Computer


  5. Posts : 71,980
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #5

    You're most welcome. I'm glad it was helpful for you. :)
      My Computer


  6. Posts : 5
    Windows XP
       #6

    Hi Brink The registry hack does not work in Win10.240. Thanks for this tutorial :) Command Prompt - Open in Windows 10 - Windows 10 Forums Do you know how to run option 8 as admin? Shift + Right Click Another link for option 8:
    Last edited by Brink; 31 Jul 2015 at 23:39. Reason: link
      My Computer


  7. Posts : 71,980
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #7

    Hello jangirke,

    You can do so like this. :)

    Elevated Command Prompt - Open in Windows 10 - Windows 10 Forums
      My Computer


  8. Posts : 30
    Windows 7 Home Premium (64bit)
       #8

    Something messed up this option on my computer, so I tried the .reg files here again, but they only partly helped. The menu now says "Open Command Window Here", whereas it used to just say "cmd", but choosing this item still shows an error box saying "This file does not have a program associated with it..."

    I looked in the registry for relevant entries (before using these .reg files), and here's what I found:

    Code:
    [HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd]
    @="@shell32.dll,-8506"
    "Extended"=""
    "NoWorkingDirectory"=""
    
    [HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd\command]
    @="cmd.exe /s /k pushd \"%V\""
    
    [HKEY_CLASSES_ROOT\Drive\shell\cmd]
    @="@shell32.dll,-8506"
    "NoWorkingDirectory"=""
    
    [HKEY_CLASSES_ROOT\Drive\shell\cmd\command]
    @="cmd.exe /s /k pushd \"%V\""
    
    [HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd]
    @="@shell32.dll,-8506"
    "Extended"=""
    "NoWorkingDirectory"=""
    
    [HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd\command]
    @="cmd.exe /s /k pushd \"%V\""
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd]
    @="@shell32.dll,-8506"
    "Extended"=""
    "NoWorkingDirectory"=""
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd\command]
    @="cmd.exe /s /k pushd \"%V\""
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\cmd]
    @="@shell32.dll,-8506"
    "NoWorkingDirectory"=""
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\cmd\command]
    @="cmd.exe /s /k pushd \"%V\""
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd]
    @="@shell32.dll,-8506"
    "Extended"=""
    "NoWorkingDirectory"=""
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd\command]
    @="cmd.exe /s /k pushd \"%V\""
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd]
    @="@shell32.dll,-8506"
    "Extended"=""
    "NoWorkingDirectory"=""
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\cmd\command]
    @="cmd.exe /s /k pushd \"%V\""
    What's wrong here?
      My Computer


  9. Posts : 71,980
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #9

    Hello TBugReporter, :)

    Are you getting this "This file does not have a program associated with it..." for all .exe files?

    As a test, you might see if downloading and merging the .reg file for the exe option in the tutorial below. It will restore the default associations for .exe files.

    Default File Type Associations - Restore - Windows 7 Help Forums
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:53.
Find Us