Windows 8 and 8.1 Forums

cmd

  1. #1

    cmd


    Have a clue why Win 8 from time to time insists upon creating a "cmd" item under this registry key...

    [HKEY_CLASSES_ROOT\Directory\background\shell]

    "cmd" then appears in File Explorer right-click context menus, and generates an error message when clicked.

    It is removed, and in a few months it's back. Never have been able to connect why. Happened in W7 as well.

      My System SpecsSystem Spec

  2. #2


    San Jose - California
    Posts : 2,847
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64


    Any entry under "HKEY_CLASSES_ROOT\Directory\background\shell" is the context menu when right click or SHIFT+right click on the desktop or on the background of the file explorer. The cmd key is the entry to open the Command Prompt and since there is a value "Extended" under cmd, meaning you have to hold down SHIFT key and right click then you'll see an option "Open command windows here". One exception is this option will not apply to virtual folder such as libraries.

    If you right click and see cmd then this is something else and not related to this entry in the registry. This entry is installed with Windows 8.

    Here's an example:

    Attachment 20095

    Click image for larger version
    Attached Thumbnails Attached Thumbnails 4-13-2013 7-13-59 PM.png  
    Last edited by topgundcp; 13 Apr 2013 at 21:53.
      My System SpecsSystem Spec

  3. #3


    Quote Originally Posted by topgundcp View Post
    Any entry under "HKEY_CLASSES_ROOT\Directory\background\shell" is the context menu when right click or SHIFT+right click on the desktop or on the background of the file explorer. The cmd key is the entry to open the Command Prompt and since there is a value "Extended" under cmd, meaning you have to hold down SHIFT key and right click then you'll see an option "Open command windows here."
    Looking at your .../background/shell/cmd paste I noted that my "cmd" was missing the @shell32.dll,-8506 value for "Default" and it did not list "Extended" or "NoWorkingDirectory." When I added them, the right-click "cmd" item vanished and "open command prompt here" (shifted) became available on the desktop and Explorer BG. Those values were missing - for unknown reasons. As mentioned earlier, this was the case in Win 7 as well.

    Curiously, comparing what I see with your image, when a folder here is selected, as with "cmd", its subfolder/s are not shown in the right-hand menu as they are in your image - which would be similar to what one sees in a File Explorer view??

    Thanks for your work - appreciate it!
    Last edited by borgus; 14 Apr 2013 at 11:44.
      My System SpecsSystem Spec

  4. #4


    San Jose - California
    Posts : 2,847
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64


    @shell32.dll,-8506 value for "Default" represents the text string "open command prompt here". Windows stored icons and text in shell32.dll and extract its resource using an index #. You can replace @shell32.dll,-8506 with any text string you want.
      My System SpecsSystem Spec

cmd
Eight Forums Android App Eight Forums IOS App Follow us on Facebook