DriveInfo equivalent in WinRT/Metro App

2019-07-17 01:31发布

I need to scan all the local drives (and the directories) in a Metro App that I'm working on. I've searched everywhere I could, but without any success. Basically, I need something similar to what is shown as an example here: http://msdn.microsoft.com/en-us/library/system.io.driveinfo.aspx

1条回答
Rolldiameter
2楼-- · 2019-07-17 02:05

Remember that metro style applications are severely restricted in the parts of the operating system they can access. I don't believe that it is possible for a metro style app to scan arbitrary locations on the users hard disk. You can request permissions to access the users photos, videos and documents, but outside that, your options are limited.

查看更多
登录 后发表回答