{"id":7103,"date":"2012-07-18T07:00:00","date_gmt":"2012-07-18T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2012\/07\/18\/why-dont-per-item-custom-icons-work-when-i-open-a-zip-file-or-some-other-virtual-folder\/"},"modified":"2012-07-18T07:00:00","modified_gmt":"2012-07-18T07:00:00","slug":"why-dont-per-item-custom-icons-work-when-i-open-a-zip-file-or-some-other-virtual-folder","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20120718-00\/?p=7103","title":{"rendered":"Why don&#039;t per-item custom icons work when I open a Zip file or some other virtual folder?"},"content":{"rendered":"<p>A customer observed that when they opened a Zip file containing an Excel spreadsheet saved as XML, the icon for the spreadsheet in the Zip folder is just a plain XML icon rather than a fancy Excel-XML icon. &#8220;Is there any way to invoke a shell icon handler on an item inside a Zip folder?&#8221;\n Even if there were a way, you wouldn&#8217;t like it.\n Think about it: In order to determine whether the XML file should get a plain-XML icon or an Excel-XML icon, the Office icon handler needs to open the XML file and sniff around to see if has whatever it is that makes an XML file an Excel-XML file.\n This means that the Zip folder has to extract the file so that the icon handler can sniff it.\n This means that opening a Zip folder would result in <i>decompressing every file in it<\/i> just so that it can give the decompressed file to the icon handler so the icon handler can say what icon to show.\n You probably wouldn&#8217;t like that.<\/p>\n<p> Therefore, Zip folders do not use icon handlers to obtain icons for items inside Zip files. It just <a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2004\/06\/01\/145428.aspx\"> uses the generic icon for the file extension<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>A customer observed that when they opened a Zip file containing an Excel spreadsheet saved as XML, the icon for the spreadsheet in the Zip folder is just a plain XML icon rather than a fancy Excel-XML icon. &#8220;Is there any way to invoke a shell icon handler on an item inside a Zip folder?&#8221; [&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":[26],"class_list":["post-7103","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>A customer observed that when they opened a Zip file containing an Excel spreadsheet saved as XML, the icon for the spreadsheet in the Zip folder is just a plain XML icon rather than a fancy Excel-XML icon. &#8220;Is there any way to invoke a shell icon handler on an item inside a Zip folder?&#8221; [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/7103","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=7103"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/7103\/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=7103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=7103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=7103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}