{"id":5031,"date":"2016-12-29T12:09:30","date_gmt":"2016-12-29T06:39:30","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=5031"},"modified":"2021-05-24T19:29:30","modified_gmt":"2021-05-24T13:59:30","slug":"ribbon-command-right-click-menu-windows-10","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/ribbon-command-right-click-menu-windows-10\/","title":{"rendered":"How to Add a Ribbon Command to Right-click Menu in Windows 10"},"content":{"rendered":"<p>Ribbon UI consists of a command bar with a series of tabs. Each tab contains a set of commands such as Cut, Copy, Paste, etc. Ribbon UI was first introduced in Office 2007. Then it was included in File Explorer in Windows 8 and Windows 10.<\/p>\n<p>This article explains how to add any Ribbon command from File Explorer to the right-click menu for files or folders.<!--more--><\/p>\n<figure id=\"attachment_5032\" aria-describedby=\"caption-attachment-5032\" style=\"width: 667px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5032\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/add-ribbon-context-menu-5.png\" alt=\"ribbon command in right-click menu\" width=\"677\" height=\"150\" \/><figcaption id=\"caption-attachment-5032\" class=\"wp-caption-text\">File Explorer Ribbon UI<\/figcaption><\/figure>\n<p>The standard tabs in the File Explorer Ribbon are File, Home, Share, and View &#8212; each containing a set of commands. Besides these standard tabs, additional contextual tab(s) appears dynamically, based on the type of file you select in a folder. In Windows 10, the registry entries for each Ribbon command are stored under the &#8220;CommandStore&#8221; registry key.<\/p>\n<p>To access the CommandStore key, start the Registry Editor (regedit.exe) and go to the following branch:<\/p>\n<pre>HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\CommandStore\\shell<\/pre>\n<p><em><strong>See also:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/regjump-quickly-jump-registry-path-clipboard\/\">Using RegJump to Quickly Jump to a Registry Path<\/a><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5035\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/add-ribbon-context-menu-2.png\" alt=\"ribbon command in right-click menu\" width=\"674\" height=\"271\" \/><\/p>\n<p>Each subkey corresponds to a Ribbon command in File Explorer. For example, the key &#8220;Windows.PermanentDelete&#8221; powers the &#8220;Permanently Delete&#8221; command, which is a sub-command under &#8220;Delete&#8221; in the Ribbon UI.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5036\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/add-ribbon-context-menu-1.png\" alt=\"\" width=\"675\" height=\"205\" \/><\/p>\n<p>You can add this item or <strong>any other Ribbon command<\/strong> to the right-click menu by tweaking the registry.<\/p>\n<h2>Example 1: Add &#8220;Permanently Delete&#8221; command to right-click menu<\/h2>\n<p>To add &#8220;Permanently Delete&#8221; option to the context menu for files, you need to copy the following key:<\/p>\n<pre>HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\CommandStore\\shell\\Windows.PermanentDelete<\/pre>\n<p>to the following key:<\/p>\n<pre>HKEY_CLASSES_ROOT\\*\\shell\\Windows.PermanentDelete<\/pre>\n<p>This can be done by exporting the 1st key to a .REG file (via File &#8211; Export command in the Registry Editor). Then, edit the file with Notepad and change the following path:<\/p>\n<pre>HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\CommandStore\\shell\\Windows.PermanentDelete<\/pre>\n<p>to<\/p>\n<pre>HKEY_CLASSES_ROOT\\*\\shell\\Windows.PermanentDelete<\/pre>\n<p>Save the REG file and double-click to run it.\u00a0This adds the &#8220;Permanently Delete&#8221; option to the right-click menu for all files.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5033\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/add-ribbon-context-menu-4.png\" alt=\"ribbon command in right-click menu\" width=\"675\" height=\"509\" \/><\/p>\n<p><strong>Quick Tip:<\/strong> You can set this key only on a per-file type basis or for all file types, folders, or both files &amp; folders. However, it makes perfect sense to add the &#8220;Delete Permanently&#8221; command only for (all) files. Adding it to Folders will work, but there is always a risk of accidental deletion of an entire folder &#8212; but it&#8217;s your call.<\/p>\n<p>To add the Ribbon command for folders, you&#8217;d copy it to the following branch:<\/p>\n<pre>HKEY_CLASSES_ROOT\\Directory\\shell<\/pre>\n<p>To implement it for both files and folders, add it here:<\/p>\n<pre>HKEY_CLASSES_ROOT\\AllFileSystemObjects\\shell<\/pre>\n<h2>Example 2: Add &#8220;Copy as Path&#8221; to the right-click menu<\/h2>\n<p>By bringing the &#8220;Copy as Path&#8221; ribbon command to the right-click menu, you can make the &#8220;Copy as Path&#8221; right-click option appear by default without having to press the <code>SHIFT<\/code> key when right-clicking.<\/p>\n<p>Note that the standard &#8220;Copy as Path&#8221; extended menu command would still show up if using the SHIFT key. So when using <code>SHIFT<\/code> right-click on a file, there will essentially be two &#8220;Copy as Path&#8221; commands.<\/p>\n<p>For more information, check out the following article: <a href=\"https:\/\/www.winhelponline.com\/blog\/copy-as-path-always-show-right-click-windows-10\/\">Show &#8220;Copy as Path&#8221; Always in Right-Click Menu Without Shift Key<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ribbon UI consists of a command bar with a series of tabs. Each tab contains a set of commands such as Cut, Copy, Paste, etc. Ribbon UI was first introduced in Office 2007. Then it was included in File Explorer in Windows 8 and Windows 10. This article explains how to add any Ribbon command &#8230; <a title=\"How to Add a Ribbon Command to Right-click Menu in Windows 10\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/ribbon-command-right-click-menu-windows-10\/\" aria-label=\"Read more about How to Add a Ribbon Command to Right-click Menu in Windows 10\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[8],"tags":[114,441],"class_list":["post-5031","post","type-post","status-publish","format-standard","hentry","category-windows-10","tag-context-menu","tag-registry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":4106,"url":"https:\/\/www.winhelponline.com\/blog\/send-file-attachments-email-using-mail-app-file-explorer-windows-10\/","url_meta":{"origin":5031,"position":0},"title":"Send Files to Email via File Explorer Share Button in Windows 10","author":"Ramesh","date":"September 22, 2016","format":false,"excerpt":"The much useful Mail Recipient command in the Send To menu helps you quickly attach files to your email, if you have a desktop email client (with Simple-MAPI support) installed in the system. Unfortunately, the Send To feature which uses Messaging API call, doesn't support the built-in Mail app. But\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"Share ribbon button in Windows 10","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/09\/share-ribbon-command.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":5172,"url":"https:\/\/www.winhelponline.com\/blog\/customize-backup-quick-access-toolbar-settings-file-explorer\/","url_meta":{"origin":5031,"position":1},"title":"Customize and Backup Quick Access Toolbar Settings in File Explorer","author":"Ramesh","date":"January 14, 2017","format":false,"excerpt":"The Quick Access Toolbar (QAT), part of the Ribbon framework, is located in the title bar of File Explorer and Office applications. You can add your frequently used ribbon commands to the Quick Access Toolbar for easy access -- so that you don't need to switch tabs each time to\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"Customize File Explorer QAT","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/01\/qat-customize-0.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/01\/qat-customize-0.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/01\/qat-customize-0.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":25702,"url":"https:\/\/www.winhelponline.com\/blog\/get-back-windows-10-ribbon-ui-windows-11\/","url_meta":{"origin":5031,"position":2},"title":"Get Back Windows 10 Ribbon UI in Windows 11 File Explorer","author":"Ramesh","date":"January 15, 2022","format":false,"excerpt":"The File Explorer in Windows 11 has a new\/modern ribbon interface with small icons (no caption text underneath). The new ribbon interface may look bland and uncomfortable for new users who have upgraded to Windows 11 from Windows 10 or earlier. Luckily, there are many different ways to get back\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"get ribbon script winlogon shell","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/winlogon-replace-ribbon-script.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":28019,"url":"https:\/\/www.winhelponline.com\/blog\/view-images-slideshow-explorer-windows-11\/","url_meta":{"origin":5031,"position":3},"title":"How to View Image Slideshow from Folder in Windows 11","author":"Ramesh","date":"September 4, 2022","format":false,"excerpt":"With the classic ribbon interface removed in Windows 11, the \"Picture Tools\" tab and the \"Slideshow\" button have also been removed. You may be wondering how to start a slideshow from a folder in Windows 11. View Images as a Slideshow in Windows 11 There are two options to view\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"slideshow ribbon command in windows 11","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/09\/slideshow-ribbon-command-w11.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/09\/slideshow-ribbon-command-w11.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/09\/slideshow-ribbon-command-w11.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":59974,"url":"https:\/\/www.winhelponline.com\/blog\/add-play-all-context-menu\/","url_meta":{"origin":5031,"position":4},"title":"Add &#8220;Play All&#8221; Right-Click Menu for Music and Video Files in Windows 11","author":"Ramesh","date":"August 2, 2023","format":false,"excerpt":"Using a registry tweak discussed in this article, you can add the \"Play all\" command to the right-click menu to play all music or video files in the current folder. The classic ribbon UI in Windows 10 was awesome. But the new File Explorer UI in Windows 11 lacks functionality.\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"play all - add to context menu","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/play-all-context-menu.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":4939,"url":"https:\/\/www.winhelponline.com\/blog\/extract-missing-zip-files-right-click-menu-fix\/","url_meta":{"origin":5031,"position":5},"title":"Restore Missing &#8220;Extract All&#8221; Option to Zip Right-Click Menu","author":"Ramesh","date":"December 24, 2016","format":false,"excerpt":"When you right-click on a .zip file (Compressed Folder) and click \"Extract All\", it extracts the contents of the .zip file to a folder, and automatically opens the folder. Extract All option may be missing because of incorrect .zip file association setting, especially after installing and uninstalling a 3rd party\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"restore extract all to the right-click menu for .zip files","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/w10-zip-selection-asso.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/w10-zip-selection-asso.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/w10-zip-selection-asso.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/5031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=5031"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/5031\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=5031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=5031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=5031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}