Diamond Member Pelican Press 0 Posted March 24 Diamond Member Share Posted March 24 How to Add Custom Shortcuts to the Windows 11 or 10 Context Menu The Windows context menu is always right at your finger tips; it appears when you right click on files, folders, icons or just the desktop. You can use it to check the properties of an object, open a file in a particular program or quickly get to a menu or app. Many applications add themselves to the context menu, but why let them have all the fun? With a few simple registry tweaks, you can add custom shortcuts to the context menu in Windows 11 or Windows 10. Below, I’ll show you how to add custom entries to the default context menu you see when you right click on the desktop or to the menus that appear when you right click on particular file types (or all file types). You can add a lot of different things to the Windows context menu: a shortcut to launch a program, a shortcut to open a web page or a command to open the file you right clicked in a particular app. If you’re running Windows 11, the first thing you should do, though, is make sure that you’re seeing the full context menu and get rid of the annoying show “Show more options” item that you have to click to see all your choices. See our article on how to get full context menus in Windows 11, or scroll down to the bottom of this article where we also have the steps. Follow the steps below to add an application shortcut to the Windows 11 or 10 context menu you get when you right click on the desktop or on a folder. 1. Open the registry editor and navigate to HKEY_CLASSES_ROOT\Directory\Background\shell. You can open the registry editor by searching for “regedit” in Windows search. (Image credit: Future) 2. Create a key under shell with the name of the application (ex: Chrome). To create a new key, just right click in the right window pane and select New->Key. Then rename the key to what you want it to be called. Join the experts who read Tom’s Hardware for the inside track on enthusiast PC tech news — and have for over 25 years. We’ll send breaking news and in-depth reviews of CPUs, GPUs, AI, maker hardware and more straight to your inbox. (Image credit: Tom’s Hardware) 3. Within the new key you created, add a String Value and name it Icon. You can add a String value by right clicking and selecting New->String Value. You can skip this step and the next step if you don’t want an icon next to the entry. (Image credit: Tom’s Hardware) 4. Open the Icon string for editing and enter either the path to the executable (.exe) file for your program or to a custom .ico file (if you want a custom icon). Be sure to put the path in quotes and include the pull path including the drive letter. The path to the executable was “C:\Program Files\ This is the hidden content, please Sign In or Sign Up \Chrome\Application\chrome.exe” for Chrome on my PC. (Image credit: Tom’s Hardware) 5. Create another key called Command (with a capital C) under the key you previously created (ex: Chrome). 6. Open the (Default) value in Command and set it to the full path to the program’s executable (ex: “C:\Program Files\ This is the hidden content, please Sign In or Sign Up \Chrome\Application\chrome.exe”). This is the same path you used for the icon, but here it designates the file that runs. (Image credit: Tom’s Hardware) 7. Close the Registry Editor. If you don’t immediately see the change in your context menu, then restart your PC or log out and back in again or restart Windows Explorer from the task manager.. You should now see the new shortcut on the right click menu when you right click on the desktop or within a folder in File Explorer. (Image credit: Tom’s Hardware) If you want to make a context menu shortcut that goes straight to your favorite website, it’s easy to do that and you can even include that site’s favicon. For example, to create a shortcut to Tom’s Hardware, follow all the steps above, but: 1. Download the site’s favicon and store in a folder on your PC (ex: C:\icons”). You can find the URL of any site’s favicon by viewing the source code of any page and grabbing the URL from there. (Image credit: Future) In the case of Tom’s Hardware, our favicon is currently at https://vanilla.futurecdn.net/tomshardware/917220/favicon.ico. 2. Set the Icon to C:\icons\favicon.ico or whatever you saved the favicon to. 3. Set the name (the default value for your key) to something memorable like “Open Tom’s Hardware.” 4. Set the command to “C:\Program Files\ This is the hidden content, please Sign In or Sign Up \Chrome\Application\chrome.exe” or whatever the URL you want to go to is. You can substitute the path to chrome.exe with a path that launches your browser of choice. You’ll now have a site shortcut that looks like this. (Image credit: Future) What if you want to add a menu item that opens up the “This PC” window in File Explorer or one that takes you directly to the task manager? How about going straight to the old-school Control Panel? All of these built-in Windows applications are available, but usually not as .exe files. Instead, they have CLSID numbers and are launched by entering: explorer “shell:::{CLSID}”. There are easily three dozen different CLSIDs around and Eleven Forum has a This is the hidden content, please Sign In or Sign Up . For example, to open “This PC” (your list of drives), you’d use explorer “shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D}” as the default value in the command key (see step 6 in the first section of this article). (Image credit: Future) Here are a few of the most common CLSIDs and .exe paths for built-in Windows apps you may want to add to the context menu. Built-in App Launch Path Header Cell – Column 2 This PC (all drives) explorer “shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D}” Row 0 – Cell 2 Removeable Drives Only explorer “shell:::{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}” Row 1 – Cell 2 Control Panel explorer “shell:::{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}” Row 2 – Cell 2 Downloads Folder explorer “shell:::{088e3905-0323-4b02-9826-5d99428e115f}” Row 3 – Cell 2 Documents Folder explorer “shell:::{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}” Row 4 – Cell 2 Pictures Folder explorer “shell:::{24ad3ad4-a569-4530-98e1-ab02f9417aa8}” Row 5 – Cell 2 Task Manager C:\WINDOWS\System32\Taskmgr.exe Row 6 – Cell 2 For built-in Windows apps, you can either have no icon at all, put in a path to a custom icon or choose one of the dozens of icons in Shell32.dll by entering %SystemRoot%\System32\shell32.dll,[ICON NUMBER] as the icon path. To find out the number of the icon you want, you can install This is the hidden content, please Sign In or Sign Up and use it to scan C:\windows\system32\shell32.dll. If you do that, you’ll see a list of icons with numbers in parenthesis after each. (Image credit: Future) For “This PC,” the best icon is number 15, which is already used for This PC in File Explorer. (Image credit: Future) These instructions show how to add an item to the Windows context menu which appears when you right click on the icon for a particular file type. For example, I created a menu item that reads “Open this Txt File in Chrome” to the context menu for .txt files. It then opens the .txt file for viewing in Chrome. Note that this does not change the default application for that file type. 1. In the registry editor, Navigate to HKEY_CLASSES_ROOT\SystemFileAssociations\[EXT] where [EXT] is the file extension you want. For example, for .txt files, it’s HKEY_CLASSES_ROOT\SystemFileAssociations\.txt. (Image credit: Tom’s Hardware) 2. Create a new key called “shell” under that. 3. Under “shell,” create a key called “mycommand” or anything you want as this name is just for internal use. (Image credit: Tom’s Hardware) 4. Set the default value in mycommand to whatever you want the menu text to say. In my case, I’m going to put “Open This Txt file in Chrome.” (Image credit: Tom’s Hardware) 5. If you want an icon to appear next to the menu item, create a String value called “Icon” and set it to either the path to the executable (for the program icon) or to a custom .ico file if you want a custom icon. (Image credit: Tom’s Hardware) 6. Create a key called “command” under the “mycommand” folder. (Image credit: Tom’s Hardware) 7. Set the default value in the command key to the executable file path. Be sure to include “%1” after the file path so that it knows to open the file you clicked upon. So, to open my .txt file in chrome, I entered “C:\Program Files\ This is the hidden content, please Sign In or Sign Up \Chrome\Application\chrome.exe” “%1” (Image credit: Tom’s Hardware) 8. Close the registry editor and try right clicking on a file with the extension in question. You may need to sign out / sign in again if this doesn’t work. You should now see the custom menu item appear. (Image credit: Tom’s Hardware) To add a custom context menu item that will appear on any file type, but not when you right click on the desktop, folders or other non-files, follow these steps. 1. In regedit, navigate to HKEY_CLASSES_ROOT\*\shell. (Image credit: Tom’s Hardware) 2. Create a key underneath shell called “mycommand” or anything you want as long as it doesn’t have spaces in the name. (Image credit: Tom’s Hardware) 3. Set the default value in mycommand to the menu text you wish to appear. I’ll go with “Open this File in Chrome.” (Image credit: Tom’s Hardware) 4. Create a string value called Icon and set it. Use the executable path (ex “C:\Program Files\ This is the hidden content, please Sign In or Sign Up \Chrome\Application\chrome.exe”) if you want to use the program’s default icon. However, you can also set a path to any .ico file and it will use that icon. (Image credit: Tom’s Hardware) 5. Create a key called “command” under “mycommand.” 6. Set the default value in command to the executable path (in quotes) with “%1” after it. So to open a file in chrome, I entered “C:\Program Files\ This is the hidden content, please Sign In or Sign Up \Chrome\Application\chrome.exe” “%1” (Image credit: Tom’s Hardware) 7. Close Regedit and try right-clicking on any file. You should see your new menu item on the right-click menu, though possibly not if you have assigned a custom context menu item to that particular file type already. If you don’t see it, try logging out and back in again. (Image credit: Tom’s Hardware) By default, Windows 11 does something extremely annoying; it only shows a few basic options on the context menu and then forces you to click a “Show more options” item in order to see the full menu. Follow the directions below to make Windows 11 show the complete context menu at all times. (Image credit: Tom’s Hardware) 1. Open the registry editor and navigate to HKEY_CURRENT_USER\SOFTWARE\CLASSES\CLSID\ (Image credit: Tom’s Hardware) 2. Create a new registry key called {86ca1aa0-34aa-4e8b-a509-50c905bae2a2} under CLSID. (Image credit: Tom’s Hardware) 3. Create another key under that called InprocServer32. (Image credit: Tom’s Hardware) 4. Edit the default string in InprocServer32 so that it’s blank. Don’t even leave a space. (Image credit: Tom’s Hardware) 5. Close the registry editor and reboot the computer. Now you should have a full context menu. This is the hidden content, please Sign In or Sign Up #Add #Custom #Shortcuts #Windows #Context #Menu This is the hidden content, please Sign In or Sign Up Link to comment https://hopzone.eu/forums/topic/6871-how-to-add-custom-shortcuts-to-the-windows-11-or-10-context-menu/ Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now