Add or Remove Command Prompt Open Here Context Menu in Windows 10  

Page 4 of 5 FirstFirst ... 2345 LastLast

  1. Posts : 464
    Win7 Pro X64, Win10 Pro x640
       #30

    Brink said:
    Ok. The .reg files have been updated to no longer have the context menu show when you right click on Libraries or a library folder, but will still show when you right click on the background of an open library.
    Great. I will try the modified code this evening. All you did was to remove the LibraryFolder\background subkey?
      My Computer


  2. Posts : 61,929
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #31

    bamajon1974 said:
    Great. I will try the modified code this evening. All you did was to remove the LibraryFolder\background subkey?
    Correct. The directory background subkey still allowed to right click on the background of a library.
      My Computers


  3. Posts : 464
    Win7 Pro X64, Win10 Pro x640
       #32

    Brink said:
    Correct. The directory background subkey still allowed to right click on the background of a library.
    The modification didn't quite do what I wanted. From your modification, Please see the attached pics. From the first two, command prompt is still on the main library right click menu, but not on the individual document, music, etc. libraries. I don't want either. On the second pic, the command prompt is still present on the main library folder background (I don't want that) but is present on the background of the music library...I DO want that.

    So I went to HKCR\Directory\Background and added an AppliesTo = NOT (Libraries) string and got rid of all command prompt entries on the library, see 3rd and 4th pic. However, I do want the command prompt to show up when I right click the background of an individual library (right, 2nd vs. 4th pic).

    I am close, but I think some sort of modification to the AppliesTo string is in order. How would you do this? Does what I am asking make any sense?

    Thanks!

    Add or Remove Command Prompt Open Here Context Menu in Windows 10-1-default.png
    Add or Remove Command Prompt Open Here Context Menu in Windows 10-2-default.png
    Add or Remove Command Prompt Open Here Context Menu in Windows 10-1-modified.png
    Add or Remove Command Prompt Open Here Context Menu in Windows 10-2-modified.png
      My Computer


  4. Posts : 61,929
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #33

    bamajon1974 said:
    The modification didn't quite do what I wanted. From your modification, Please see the attached pics. From the first two, command prompt is still on the main library right click menu, but not on the individual document, music, etc. libraries. I don't want either. On the second pic, the command prompt is still present on the main library folder background (I don't want that) but is present on the background of the music library...I DO want that.

    So I went to HKCR\Directory\Background and added an AppliesTo = NOT (Libraries) string and got rid of all command prompt entries on the library, see 3rd and 4th pic. However, I do want the command prompt to show up when I right click the background of an individual library (right, 2nd vs. 4th pic).

    I am close, but I think some sort of modification to the AppliesTo string is in order. How would you do this? Does what I am asking make any sense?

    Thanks!
    That's the trick. Libraries is referenced by a GUID, but I'm not sure how to use that with AppliesTo for only "Libraries" and not to remove it for the background of a library.
      My Computers


  5. Posts : 464
    Win7 Pro X64, Win10 Pro x640
       #34

    Brink said:
    That's the trick. Libraries is referenced by a GUID, but I'm not sure how to use that with AppliesTo for only "Libraries" and not to remove it for the background of a library.
    I will ask on the Customization Forum.
      My Computer


  6. Posts : 61,929
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #35

    bamajon1974 said:
    I will ask on the Customization Forum.
    I would love to hear what they say. It would be a nice addition.
      My Computers


  7. Posts : 897
    windows 10 professional 64-bit, 21H2
       #36

    Hi Shawn:
    I tried both your Add_Open_PowerShell_window_here_as_administrator_context_menu.reg files & Remove_Command_Prompt_Open_here_context_menu.reg. The first one works wonderfully. I'm having trouble with removing the command prompt from the context menu. One problem is that I'm not sure how I got it. It comes up in the context menu when I right click a folder, but not when I click a drive & I'd like to remove it entirely.

    It says "Open Command Prompt Here", but actually opens the command prompt as an administrator. When I Shift+Right click a folder, it also exists AND I have an extra "Open Powershell Window Here", which also opens as administrator.

    Here's the image when I right click a folder:
    Add or Remove Command Prompt Open Here Context Menu in Windows 10-image.png

    Here's the image when I shift+right click on a folder:
    Add or Remove Command Prompt Open Here Context Menu in Windows 10-image.png

    When I use the new Powershell command that your reg file added, the top of the Powershell screen says:

    Windows PowerShellCopyright (C) Microsoft Corporation. All rights reserved.Try the new cross-platform PowerShell https://aka.ms/pscore6PS C:\Users\Phil\Desktop\Edit>

    When I use the one that just has the last line above.

    Is there a way to get rid of the command prompt on the regular folder context menu & also the extra powershell command that I have on the Shift+right click menu?

    Thanks in advance for all your wonderful work!
      My Computers


  8. Posts : 61,929
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #37

    Hello @phrab,

    It looks like you may have used some other method to add Open Command Prompt Here since the wording doesn't match any of the tutorials here.

    Export the registry keys below and upload their .reg files here. I'll be happy to take a look to see if I may be able to spot its entry, and post back a .reg file to remove it if so. I'll also check for the extra PowerShell item.

    HKEY_CLASSES_ROOT\DesktopBackground\shell

    HKEY_CLASSES_ROOT\Directory\shell

    HKEY_CLASSES_ROOT\Directory\Background\shell

    HKEY_CLASSES_ROOT\Folder\shell

    HKEY_CLASSES_ROOT\Folder\Background\shell
      My Computers


  9. Posts : 897
    windows 10 professional 64-bit, 21H2
       #38

    Brink said:
    Hello @phrab,

    It looks like you may have used some other method to add Open Command Prompt Here since the wording doesn't match any of the tutorials here.

    Export the registry keys below and upload their .reg files here. I'll be happy to take a look to see if I may be able to spot its entry, and post back a .reg file to remove it if so. I'll also check for the extra PowerShell item.

    HKEY_CLASSES_ROOT\DesktopBackground\shell

    HKEY_CLASSES_ROOT\Directory\shell

    HKEY_CLASSES_ROOT\Directory\Background\shell

    HKEY_CLASSES_ROOT\Folder\shell

    HKEY_CLASSES_ROOT\Folder\Background\shell
    Thank you for your help. Here's the zip file. However, the HKEY_CLASSES_ROOT\Folder\Background\shell doesn't exist in my registry. It stops at HKEY_CLASSES_ROOT\Folder.

    Root_Directory_Desktop_Folder_RegFilesWin10.zip
      My Computers


  10. Posts : 61,929
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #39

    phrab said:
    Thank you for your help. Here's the zip file. However, the HKEY_CLASSES_ROOT\Folder\Background\shell doesn't exist in my registry. It stops at HKEY_CLASSES_ROOT\Folder.

    Root_Directory_Desktop_Folder_RegFilesWin10.zip
    It looks like your ZIP link is broken.
      My Computers


 

Tutorial Categories

Add or Remove Command Prompt Open Here Context Menu in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


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

Designer Media Ltd
All times are GMT -5. The time now is 02:54.
Find Us




Windows 10 Forums