cmd

borgus

New Member
Member
Messages
110
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 Computer

System One

  • OS
    W8
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:

View attachment 20095

4-13-2013 7-49-00 PM.png
 

Attachments

  • 4-13-2013 7-13-59 PM.png
    4-13-2013 7-13-59 PM.png
    62.4 KB · Views: 102
Last edited:

My Computer

System One

  • OS
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home Brewed
    CPU
    I7 4970K OC'ed @4.7 GHz
    Motherboard
    MSI-Z97
    Memory
    16 GB G-Skill Trident X @2400MHZ
    Graphics Card(s)
    NVIDIA GeForce GTS 450
    Sound Card
    X-Fi Titanium Fatal1ty Professional Series
    Monitor(s) Displays
    Dual HP-W2408
    Screen Resolution
    1920X1200
    Hard Drives
    256 GB M2 sm951, (2) 500GB 850EVO, 5TB, 2 TB Seagate
    PSU
    Antec 850W
    Case
    Antec 1200
    Cooling
    Danger Den H20
    Keyboard
    Logitech
    Mouse
    Logitech Performance Mouse MX
    Internet Speed
    35/12mbps
    Browser
    Firefox
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:

My Computer

System One

  • OS
    W8
@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 Computer

System One

  • OS
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home Brewed
    CPU
    I7 4970K OC'ed @4.7 GHz
    Motherboard
    MSI-Z97
    Memory
    16 GB G-Skill Trident X @2400MHZ
    Graphics Card(s)
    NVIDIA GeForce GTS 450
    Sound Card
    X-Fi Titanium Fatal1ty Professional Series
    Monitor(s) Displays
    Dual HP-W2408
    Screen Resolution
    1920X1200
    Hard Drives
    256 GB M2 sm951, (2) 500GB 850EVO, 5TB, 2 TB Seagate
    PSU
    Antec 850W
    Case
    Antec 1200
    Cooling
    Danger Den H20
    Keyboard
    Logitech
    Mouse
    Logitech Performance Mouse MX
    Internet Speed
    35/12mbps
    Browser
    Firefox
Back
Top