Windows 10: How to exclude libraries from custom right-click menu entries

Discus and support How to exclude libraries from custom right-click menu entries in Windows 10 Customization to solve the problem; I want to add a custom context menu entry to open an administrator command prompt when right-clicking a directory or directory background. I borrowed... Discussion in 'Windows 10 Customization' started by bamajon1974, Feb 8, 2021.

  1. How to exclude libraries from custom right-click menu entries


    I want to add a custom context menu entry to open an administrator command prompt when right-clicking a directory or directory background. I borrowed the registry modification code (shown below) from tenforums and works fine.

    However, I found that the command prompt context menu is also added to library folders and backgrounds. It seems that command shell windows cannot be open in such a way for hardlinks like Libaries. Note that no registry information was entered for the HKCR\LibraryFolder\Background\Shell, HKCR\AllFileSystemObjects\Shell nor HKCR\Folder\Shell subkeys.

    I would like to exclude Libraries and Library backgrounds from displaying the command prompt context menu and think I can do so using the AppliesTo string, but don't know how the proper syntax for values. If I simply add AppliesTo string with value "NOT Libraries" to HKCR\Directory\shell\CommandPrompt\shell\cmdadmin and/or Directory\Background\Background\shell\CommandPrompt\shell\cmdadmin subkeys, the right-click menu entries disappear for ALL folders and/or folder backgrounds.

    Questions:

    1. What is the proper format/syntax for the values of AppliesTo string to exclude the custom context menu entry from library folders and library backgrounds?
    2. Does the AppliesTo string need to be added to either HKCR\Directory or HKCR\Directory\Background or both keys?

    Thanks!

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

    Code:
    :)
     
    bamajon1974, Feb 8, 2021
    #1

  2. Custom context menu entries

    So, just throwing this out there, in case somone knows.

    I have added a custom context menu entry for the program rightload, since by default the menu is broken in vistax64.

    It works pefect with single files, but when I select mutiple files and try to open, I get mutiple instances of the program (which makes sense), here is my entry:

    C:\Program Files (x86)\Rightload\Rightload.exe --server=1 --autostart %1

    So the %1 passes the filename to the program, and when I select multiple files it is just opening multiple instances of rightload each with a different file.

    What I'd like to do is be able to pass a list of the files selected to the program. Since I know it is capable of uploading multiple files from the context menu, all in one instance.

    So, is there something I can pass besides %1 that will do this? I have looked around and can't seem to find an answer anywhere... *Frown How to exclude libraries from custom right-click menu entries :(
     
    ArmoredCavalry, Feb 8, 2021
    #2
  3. Naki Win User
    Feature suggestion: Add right-click menu

    Suggestion: Please add a Windows 7 Jump-List and/or right-click menu to the GPU-Z icon in the Windows taskbar. Possible menus in it would be "Exit" and "About GPU-Z...".
    Maybe also "Switch to tab 1/Switch to tab 2/Switch to videocard 1/Switch to videocard 2" too.
    Examples of programs that have such menus are ICQ, Skype, AIM.

    NOTE: It seems for a right-click menu, Windows 7 is not needed - it works on WinXP and Vista too.
    But even a Windows 7 Jump-list may be good enough.
    What do you think?
     
    Naki, Feb 8, 2021
    #3
  4. mngerhold Win User

    How to exclude libraries from custom right-click menu entries

    Can I customize the list of suggest apps in the "Open with" menu?

    Well, I hope this helps the OP - it took a while. I tried 'Default Program Editor' (DPE) and it did indeed add (or remove) items, but when I tried to specifically add Word to pdf opening, it failed - it went through the motions, but nothing happened. So I started again, playing with settings for opening .doc files. This seemed to work: initially in explorer I had 3 programs appear in the 'default' list that pops up on a rt-click>open-with:

    How to exclude libraries from custom right-click menu entries [​IMG]

    and this is what the relevant bit of the Registry showed:

    How to exclude libraries from custom right-click menu entries [​IMG]

    Don't ask me why just 3 of those 8 (a to h) programs show up (maybe the 'instant' list is limited to three? - no, see later) - anyway, I used DPE to remove Wordpad from the list: when saving the edit as a REG file, this is what I got:

    Code:
    and the result in Explorer was:

    How to exclude libraries from custom right-click menu entries [​IMG]

    and the registry now shows:

    How to exclude libraries from custom right-click menu entries [​IMG]

    Note how item 'g' from the list has been removed (it seems there is no issue with having a letter missing). I then messed about trying to open a .doc file with various other programs, and they all started to appear in the 'instant' list:

    How to exclude libraries from custom right-click menu entries [​IMG]


    So I thought 'well, that is easy - just open a pdf once in Word and it should appear'. So back to trying to open PDFs: but however many times I tried, Word would never appear.

    How to exclude libraries from custom right-click menu entries [​IMG]

    even though there were any number of entries in the Registry 'Open With' list, including Word:

    How to exclude libraries from custom right-click menu entries [​IMG]

    So what did DPE make of this - well, it showed some of the entries:

    How to exclude libraries from custom right-click menu entries [​IMG]

    Although Word is shown, it doesn't appear on a rt-click. Its entry can be removed, but that doesn't help. So my attention was drawn to the existence of another folder below 'OpenWithList', namely 'OpenWithProgids', and that contained a specific ref to Sumatra (my preferred program for PDFs). Looking back at the same entry for .docx, I found this:

    How to exclude libraries from custom right-click menu entries [​IMG]

    so I added an identical Word.Document.12 ref to the list for PDFs:

    How to exclude libraries from custom right-click menu entries [​IMG]

    I think IrfanView is there as it got added during my experiments! I now get this in Explorer:

    How to exclude libraries from custom right-click menu entries [​IMG]
    Hurrah! I then tried to use DPE to remove the redundant entries, and got this as a .REG file:
    Code:
    But when i merge that with the registry, the IrfanView item does not get deleted:

    How to exclude libraries from custom right-click menu entries [​IMG]

    and as seen in the registry:

    How to exclude libraries from custom right-click menu entries [​IMG]

    so I deleted it by hand, and at last have the entries I (or rather, the OP) want:

    How to exclude libraries from custom right-click menu entries [​IMG]


    Note that my manually added reg entry is of type Binary', as there seems to be no way to add a value of type 'None'.

    So it seems that DPE cannot cope with entries in the 'Progids' list, and something makes some programs fall into that list, rather than the 'openwithlist'. I am sorry for any typos above, or pictures in the wrong place - can't be bothered to check it too thoroughly. Hope it helps someone!

    atb, Martin
     
    mngerhold, Feb 8, 2021
    #4
Thema:

How to exclude libraries from custom right-click menu entries

Loading...
  1. How to exclude libraries from custom right-click menu entries - Similar Threads - exclude libraries custom

  2. How can i customize the Windows11 right click menu?

    in Windows 10 Gaming
    How can i customize the Windows11 right click menu?: I want to be able to add, remove, edit and view the options in 'new view'windows 11 that are available when i "right-click" on "windows background" ,"inside a folder background" and "on a folder/file". As you can see , when i installed 'winrar' the respective option got...
  3. How can i customize the Windows11 right click menu?

    in Windows 10 Software and Apps
    How can i customize the Windows11 right click menu?: I want to be able to add, remove, edit and view the options in 'new view'windows 11 that are available when i "right-click" on "windows background" ,"inside a folder background" and "on a folder/file". As you can see , when i installed 'winrar' the respective option got...
  4. Remove right click menu entry

    in Windows 10 Customization
    Remove right click menu entry: Hi, recently I installed a software game which created an entry in the right-click menu of desktop i.e. this entry only appears when I right-click on the desktop. Below is a screenshot of it. [ATTACH] Now, I want to remove it but I don't know how to do it,...
  5. Custom Icons in Right Click menu.

    in Windows 10 Ask Insider
    Custom Icons in Right Click menu.: [ATTACH] Hello! Is possible to add custom icons to the right click menu options (example screenshot)? Thanks! https://preview.redd.it/qmuv6tpve2l61.png?width=215&format=png&auto=webp&s=ff27929f918cba85ad59deafc6b3aad981d2d1bc submitted by /u/_TopComp_ [link]...
  6. Exclude libraries from custom right-click menu using AppliesTo string

    in Windows 10 Ask Insider
    Exclude libraries from custom right-click menu using AppliesTo string: I am trying to add custom entries to the Windows 10 File Explorer (x64, v20H2). Specifically, I want to be able to right-click a directory and directory background for command prompt and powershell options to show up. I know I add the corresponding entries to...
  7. Change icons in : "Include in Library " right click menu

    in Windows 10 Customization
    Change icons in : "Include in Library " right click menu: Hello, Just as I change icons in : send to " menu with this tutorial : How to Change Send to Desktop (create shortcut) Icon in Windows (thank you) I want to be able ,if possible, to do the same with the right click menu : "Include in Library' I must precise that I have...
  8. customize right click

    in Windows 10 Ask Insider
    customize right click: I want to add a New .md and new .py file in the right click new list I tried some methods from the web in the regedit but non of them works. submitted by /u/ZER0-00 [link] [comments] https://www.reddit.com/r/Windows10/comments/j3aa34/customize_right_click/
  9. Onedrive right click menu entries

    in Windows 10 Network and Sharing
    Onedrive right click menu entries: How do I remove them? Recently it added one for 'move to Onedrive' which uses the same shortcut key as 'rename'. This is annoying and I want it gone. https://answers.microsoft.com/en-us/windows/forum/all/onedrive-right-click-menu-entries/c27c6a68-fc26-4f2e-a8fb-230c62ff3b96"
  10. How to remove OneDrive entries from right click context menu

    in Windows 10 Customization
    How to remove OneDrive entries from right click context menu: Hi, this is my first post and I hope this is the right forum section. I'm trying to make Windows 10 more "personal", adding/removing some features according to my needs. Now I'm customising the right click context menu and I'd like to remove OneDrive entries, without...