Open Windows Explorer from Windows Store app

谁说我不能喝 提交于 2019-12-08 13:46:11

问题


It's actually a simple question, I have a n index of saved locations of my local network, like \\server\file01. I'm showing the user a grid with these entries and I want to open Windows Explorer when the user clicks on an item (path).

According to the documentation of launchUriAsync, it is possible to do so since they state: You must specify the privateNetworkClientServer capability in the manifest in order to launch intranet URIs, for example a file:/// URI pointing to a network location.

For some unknown reason I cannot get it to work, the callback from launchUriAsync returns false. I started a thread at the msdn forum with no luck so fat, and I thought of posting here before paying for support.

Is there anything I am missing?

Edit: if I write the same uri to the folder in an html page with the a tag the windows explorer opens with the apecified folder. I thought Windows Explorer is the default app handler for the file:/// protocol

来源:https://stackoverflow.com/questions/15912008/open-windows-explorer-from-windows-store-app

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