{"id":2433,"date":"2016-03-28T11:31:41","date_gmt":"2016-03-28T06:01:41","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=2433"},"modified":"2019-05-12T02:55:36","modified_gmt":"2019-05-12T02:55:36","slug":"cascading-menu-jump-lists-issue-windows-10","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/cascading-menu-jump-lists-issue-windows-10\/","title":{"rendered":"Cascading Menu and File Explorer Jump Lists Issue in Windows 10"},"content":{"rendered":"<p>When you implement Cascading Menus in File Folders (Directory) using the <a target=\"_blank\" href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/hh127467(v=vs.85).aspx\" rel=\"noopener noreferrer\">SubCommands<\/a> or <a target=\"_blank\" href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/hh127431(v=vs.85).aspx\" rel=\"noopener noreferrer\">ExtendedSubCommands<\/a> registry keys in Windows 10, an interesting thing happens. The last item in your Cascading menu gets executed when you right-click Pinned File Explorer shortcut in the Taskbar, and click on a folder in the Jump List, instead of a folder window opening.<!--more--><\/p>\n<p>(<i>This bug was first reported at Microsoft Answers forum, and you can see my response <a target=\"_blank\" href=\"http:\/\/answers.microsoft.com\/en-us\/windows\/forum\/windows_10-start\/custom-context-menu-for-folder-conflict-with\/13065124-24e5-4dea-85b1-412f582b49df\" rel=\"noopener noreferrer\">there<\/a>. As it was later reported by two other users, I decided to write a blog post on this.<\/i>)<\/p>\n<h2>Sample REG file to Reproduce the Issue<\/h2>\n<p>Copy the following contents to Notepad, save as &quot;mymenu.reg&quot;, and run it.<\/p>\n<pre><code>Windows Registry Editor Version 5.00<br>\r\n[HKEY_CLASSES_ROOT\\directory\\shell\\CustomMenu]\r\n&quot;Icon&quot;=&quot;shell32.dll,39&quot;\r\n&quot;MUIVerb&quot;=&quot;MyMenu&quot;\r\n&quot;SubCommands&quot;=&quot;&quot;\r\n\r\n[HKEY_CLASSES_ROOT\\directory\\shell\\CustomMenu\\shell\\menu1]\r\n&quot;Icon&quot;=&quot;c:\\\\windows\\\\system32\\\\cmd.exe,0&quot;\r\n@=&quot;Command Prompt&quot;\r\n\r\n[HKEY_CLASSES_ROOT\\directory\\shell\\CustomMenu\\shell\\menu1\\command]\r\n@=&quot;cmd.exe \\&quot;%1\\&quot;&quot;\r\n\r\n[HKEY_CLASSES_ROOT\\directory\\shell\\CustomMenu\\shell\\menu2]\r\n&quot;Icon&quot;=&quot;c:\\\\windows\\\\system32\\\\cmd.exe,0&quot;\r\n@=&quot;Run Maintenance (Batch File)&quot;\r\n\r\n[HKEY_CLASSES_ROOT\\directory\\shell\\CustomMenu\\shell\\menu2\\command]\r\n@=&quot;D:\\\\Tools\\\\maintenance.bat&quot;<br><\/code><\/pre>\n<p>The cascading menu will show up and work perfectly fine when you right-click a file folder.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/cascade1.png\" width=\"600\" height=\"204\"><\/p>\n<p><b>Bug: <\/b>The problem occurs when you right-click on the File Explorer Pinned item in the Taskbar and click on a folder in the Jumplist. <u>Instead of opening a folder window, the last command in your Cascading menu (in this example, &quot;Run Maintenance&quot;) gets executed<\/u>. This is a bug!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/cascade2.png\" width=\"256\" height=\"557\"><\/p>\n<h2>Workaround #1<\/h2>\n<p>Implementing the Cascading menu under &quot;Folders&quot; or &quot;AllFileSystemObjects&quot; registry key should not cause this problem. However, when implemented in Folders or AllFileSystemObjects registry area, the menu would show up for virtual folders like This PC, Recycle Bin etc as well as for Compressed Folders and files. To prevent it from appearing for files, virtual folders and Compressed (zipped) folders, add a check by creating the AppliesTo REG_SZ value in your Cascading menu.<\/p>\n<p>Set AppliesTo value data to:<\/p>\n<pre>kind:file folder AND System.FileExtension:&lt;&gt;&quot;.zip&quot;<\/pre>\n<p><b>Revised Registry Settings<\/b><\/p>\n<pre><code>Windows Registry Editor Version 5.00<br>\r\n[HKEY_CLASSES_ROOT\\Folder\\shell\\CustomMenu]\r\n&quot;Icon&quot;=&quot;shell32.dll,39&quot;\r\n&quot;MUIVerb&quot;=&quot;MyMenu&quot;\r\n&quot;SubCommands&quot;=&quot;&quot;\r\n&quot;AppliesTo&quot;=&quot;kind:file folder AND System.FileExtension:&lt;&gt;\\&quot;.zip\\&quot;&quot;\r\n\r\n[HKEY_CLASSES_ROOT\\Folder\\shell\\CustomMenu\\shell\\menu1]\r\n&quot;Icon&quot;=&quot;c:\\\\windows\\\\system32\\\\cmd.exe,0&quot;\r\n@=&quot;Command Prompt&quot;\r\n\r\n[HKEY_CLASSES_ROOT\\Folder\\shell\\CustomMenu\\shell\\menu1\\command]\r\n@=&quot;cmd.exe \\&quot;%1\\&quot;&quot;\r\n\r\n[HKEY_CLASSES_ROOT\\Folder\\shell\\CustomMenu\\shell\\menu2]\r\n&quot;Icon&quot;=&quot;c:\\\\windows\\\\system32\\\\cmd.exe,0&quot;\r\n@=&quot;Run Maintenance (Batch File)&quot;\r\n\r\n[HKEY_CLASSES_ROOT\\Folder\\shell\\CustomMenu\\shell\\menu2\\command]\r\n@=&quot;D:\\\\Tools\\\\maintenance.bat&quot;\r\n<\/code><\/pre>\n<h2>Workaround #2<\/h2>\n<p>In the Sample REG file at the top of the article, include a 3rd menu command which launches Explorer %1.<\/p>\n<pre><code>[HKEY_CLASSES_ROOT\\directory\\shell\\CustomMenu\\shell\\menu3\\command]<br>@=&quot;explorer.exe \\&quot;%1\\&quot;&quot;<\/code><\/pre>\n<p>But it will always show up in your Cascading menu.. When you select a folder in the Jumplist, this item (last in the menu) is executed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you implement Cascading Menus in File Folders (Directory) using the SubCommands or ExtendedSubCommands registry keys in Windows 10, an interesting thing happens. The last item in your Cascading menu gets executed when you right-click Pinned File Explorer shortcut in the Taskbar, and click on a folder in the Jump List, instead of a folder &#8230; <a title=\"Cascading Menu and File Explorer Jump Lists Issue in Windows 10\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/cascading-menu-jump-lists-issue-windows-10\/\" aria-label=\"Read more about Cascading Menu and File Explorer Jump Lists Issue 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_memberships_contains_paid_content":false,"footnotes":""},"categories":[8],"tags":[441],"class_list":["post-2433","post","type-post","status-publish","format-standard","hentry","category-windows-10","tag-registry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":5817,"url":"https:\/\/www.winhelponline.com\/blog\/ms-settings-uri-cascading-menu-desktop-windows-10\/","url_meta":{"origin":2433,"position":0},"title":"Add &#8220;Settings&#8221; Cascading Context Menu on the Desktop in Windows 10","author":"Ramesh","date":"November 8, 2017","format":false,"excerpt":"Microsoft has moved most of the Control Panel features into the Settings UI in Windows 10, and at some point the classic Control Panel may be removed altogether. The Settings panel has different categories: System, Devices, Phone, Network & Internet, Personalization, Apps, Accounts, Time & language, Gaming, Ease of Access,\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":"ms-settings URI Settings context menu on desktop","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/settings-cascade-menu.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/settings-cascade-menu.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/settings-cascade-menu.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":867,"url":"https:\/\/www.winhelponline.com\/blog\/quicklaunch-toolbar-folders-appear-as-cascading-menu\/","url_meta":{"origin":2433,"position":1},"title":"How to Make Folders Appear as Cascading Menu in the Quick Launch Toolbar","author":"Ramesh","date":"March 4, 2009","format":false,"excerpt":"When you create sub-folders in the Quick Launch folder to better organize the shortcuts, the folders will appear in the Quick Launch toolbar correctly, but clicking them would launch Windows Explorer. Some people would like to view the contents of the folder (cascaded as a list) rather than opening the\u2026","rel":"","context":"In &quot;Windows 7&quot;","block_context":{"text":"Windows 7","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-7\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/ql-folder-cascade1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3862,"url":"https:\/\/www.winhelponline.com\/blog\/windows-defender-scan-cascading-menu-desktop\/","url_meta":{"origin":2433,"position":2},"title":"Add Microsoft Defender Options as Cascading Right-Click Menu in Desktop","author":"Ramesh","date":"August 19, 2016","format":false,"excerpt":"Here is a registry tweak that adds some Windows Defender options to the Desktop Context menu as a cascading menu so you can quickly run a scan, update, or open Microsoft Defender. Download defender_menu.zip, unzip it and run the enclosed REG file. When you right-click on the desktop, you'll see\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"defender scan options as cascading menu","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/defender-cascade-options.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1427,"url":"https:\/\/www.winhelponline.com\/blog\/open-url-shortcuts-different-browsers-right-click-menu\/","url_meta":{"origin":2433,"position":3},"title":"Open .URL files (Internet Shortcut) with any Browser via Right-click menu","author":"Ramesh","date":"January 13, 2016","format":false,"excerpt":"Double-clicking a .url file (Website shortcut) always launches it using the default browser. But, there are situations where you need to open different website shortcuts in various browsers. Adding browser choices to the right-click menu for .url files allows you to choose a non-default web browser from the list and\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"web browsers - chrome, firefox, opera, safari, IE","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/01\/web-browsers-featured.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/01\/web-browsers-featured.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/01\/web-browsers-featured.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":558,"url":"https:\/\/www.winhelponline.com\/blog\/folder-options-missing-from-tools-menu-in-windows-explorer\/","url_meta":{"origin":2433,"position":4},"title":"Cannot Access &#8220;Folder Options&#8221; in Windows","author":"Ramesh","date":"September 5, 2008","format":false,"excerpt":"The NoFolderOptions registry setting hides the Folder Options applet from the Control Panel and the Folder Options command under the Tools menu in Explorer. In Windows 10, this policy disables all the Folder Options entry points\u2014e.g., \"Change folder and search options\" will be grayed out in the File menu in\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5031,"url":"https:\/\/www.winhelponline.com\/blog\/ribbon-command-right-click-menu-windows-10\/","url_meta":{"origin":2433,"position":5},"title":"How to Add a Ribbon Command to Right-click Menu in Windows 10","author":"Ramesh","date":"December 29, 2016","format":false,"excerpt":"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\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":"ribbon command in right-click menu","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/add-ribbon-context-menu-5.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/add-ribbon-context-menu-5.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/add-ribbon-context-menu-5.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/2433","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=2433"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/2433\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=2433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=2433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=2433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}