Is it possible programmatically add folders to the Windows 10 Quick Access panel in the explorer window?

前端 未结 9 912
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-28 12:18

Apparently Microsoft has (sort of) replaced the \"Favorites\" Windows explorer item with the Quick Access item. But I haven\'t been able to find a way to programmatically ad

9条回答
  •  臣服心动
    2020-11-28 12:25

    Maybe it will help someone until MS releases an API. I ran procmon and it seems that these registry keys are involved

    Pin to Quick access:

    HKEY_CLASSES_ROOT\Folder\shell\pintohome
    

    When unpin:

    HKEY_CLASSES_ROOT\PinnedFrequentPlace\shell\unpinfromhome\command
    

    Also this resource is used when pinning: (EDIT1: can't find it any longer..)

    AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinations\{SOME_SORT_OF_GUID}.automaticDestinations-ms
    

    You can try opening it with 7-zip, there are several files in there which fit the destination

    EDIT2: I found running this in the 'Run' opens up Quick access:

    shell:::{679F85CB-0220-4080-B29B-5540CC05AAB6}
    

提交回复
热议问题