询问者
?????

常规讨论
全部回复
-
Hi,
Windows store app 除了对application storage文件夹(local和romaing)以及文档库、图片库等(如果已经在manifest里面申请了访问权限)拥有访问权限之外,对存储在其它地方的文件以及文件夹没有访问权限,除了使用FilePicker以及FloderPickerd方法,他们没有访问权限的限制。具体您可以参考:http://msdn.microsoft.com/en-us/library/windows/apps/hh967755.aspx
假如您用filepicker的方法已经获得了某个文件的访问权限(假设这个文件在C盘),如果您使用StorageFolder.GetFolderFromPathAsync方法的话,是无法获得该文件的父文件夹的访问权限的,因为StorageFolder.GetFolderFromPathAsync方法对C盘是没有访问的权限的。您可以使用8.1里面的StorageFile.GetParentAsync方法来获得该文件的父文件夹。
具体参考:http://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.storagefile.getparentasync.aspx
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- 已编辑 Anne JingModerator 2013年9月18日 6:56 from
-
Hi,
自带的图片应用是采用的FloderPicker方法,此方法是没有权限限制的。
应该是通过FloderPicker的方法选择一个文件夹然后打开了文件夹中所有的文件。
具体的过程是先通过FolderPicke去选择一个文件夹,然后用StorageFolder.GetFilesAsync()方法打开该文件夹中所有的文件。您可以具体参考以下链接:
http://msdn.microsoft.com/en-us/library/windows/apps/br227276.aspx
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.
- 已编辑 Anne JingModerator 2013年9月20日 6:12 from
-
Hi,
通常情况下开发windows store app一般是通过FloderPicker这种方式,这个是没有权限限制的。至于您说的windows8.1自带的图片应用,由于涉及一些系统封装的东西,我们也没有办法看到。建议您使用FloderPicker这种方法!
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- 已编辑 Anne JingModerator 2013年9月24日 2:51 from
-
Hi,
文件类型关联里面是没有文件夹关联的,无论您是通过文件关联类型来打开文件还是其他的方式,windows store app都是有权限限制的!对于其他的API如您所使用的StorageFolder.GetFolderFromPathAsync方法这个也是有权限限制的。
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.
- 已编辑 Anne JingModerator 2013年9月24日 2:56 from