How to require Windows 10 to index a USB key from a UWP app?

限于喜欢 提交于 2020-01-11 14:03:10

问题


In Windows 10 it is possible to require the OS to index a specific location such as the D drive when a USB Key is inserted.

Is it possible to this in UWP ,and how?

The idea is to request permission from the user with a FolderPicker, and if granted, instruct the OS to index the location of the picked location. Thank you!


回答1:


UWP does not currently provide APIs for indexing drive files.

File indexing is usually established when a user begins to access a file. As you have done, you can use FolderPicker to let the user pick the file and the system will create an index for it, but the UWP app cannot interfere with this process

Best regards.



来源:https://stackoverflow.com/questions/59029624/how-to-require-windows-10-to-index-a-usb-key-from-a-uwp-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!