问题
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