{"id":40773,"date":"2004-02-02T07:00:00","date_gmt":"2004-02-02T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2004\/02\/02\/what-goes-wrong-when-you-add-copy-to-to-the-context-menu\/"},"modified":"2004-02-02T07:00:00","modified_gmt":"2004-02-02T07:00:00","slug":"what-goes-wrong-when-you-add-copy-to-to-the-context-menu","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20040202-00\/?p=40773","title":{"rendered":"What goes wrong when you add &quot;Copy To&quot; to the context menu"},"content":{"rendered":"<p><a href=\"http:\/\/channels.lockergnome.com\/news\/archives\/008543.phtml\"> Lockergnome tipped people off to <a href=\"http:\/\/www.thirdstar.net\/beeline\/Improve_XP_Search.htm\"> this page which talks (among other things) about adding &#8220;Copy To&#8221; to the context menu<\/a>. I considered adding this tweak to Tweak UI but ultimately decided against. Here&#8217;s why:\nThe &#8220;Copy to Folder&#8221; and &#8220;Move to Folder&#8221; options weren&#8217;t designed to be on the context menu. They were only meant to be placed in Explorer&#8217;s toolbar.  (Right-click a blank space on your toolbar, select Customize, and pick &#8220;Move To&#8221; or &#8220;Copy To&#8221; from the list of available buttons.) If you add them to the context menu, you may notice that the &#8220;Copy To&#8221; and &#8220;Move To&#8221; dialogs start showing up when you really aren&#8217;t expecting them, for example, whenever you double-click an attachment in Outlook.\nThe reason is that these two items are a bit too eager. When you ask them, &#8220;So do you handle the &lt;X&gt; command?&#8221; they say, &#8220;Oh yes! That&#8217;s me!&#8221; This is fine in a toolbar, where the only time they&#8217;re asked &#8220;Do you handle the &lt;X&gt; command?&#8221; is when the user clicks on the button. But in a context menu, you are asked this much more frequently, and with <b>varying values of X<\/b>.\nSo when Outlook launches an attachment, the shell loads up the context menu handlers and asks each one, &#8220;So do you handle the Open command?&#8221; The &#8220;Delete&#8221; option says, &#8220;Nope, sorry.&#8221; So does &#8220;Cut&#8221; and &#8220;Send to&#8221; and &#8220;Sharing and Security&#8221;. But &#8220;Copy To&#8221; happily says, &#8220;Oh yes! That&#8217;s me!&#8221;\nAnd then the Copy To dialog shows up when you don&#8217;t want it.\n Another example of what happens when you take an object and use it in a situation outside its design parameters.\n<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lockergnome tipped people off to this page which talks (among other things) about adding &#8220;Copy To&#8221; to the context menu. I considered adding this tweak to Tweak UI but ultimately decided against. Here&#8217;s why: The &#8220;Copy to Folder&#8221; and &#8220;Move to Folder&#8221; options weren&#8217;t designed to be on the context menu. They were only meant [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-40773","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>Lockergnome tipped people off to this page which talks (among other things) about adding &#8220;Copy To&#8221; to the context menu. I considered adding this tweak to Tweak UI but ultimately decided against. Here&#8217;s why: The &#8220;Copy to Folder&#8221; and &#8220;Move to Folder&#8221; options weren&#8217;t designed to be on the context menu. They were only meant [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/40773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=40773"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/40773\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=40773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=40773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=40773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}