简体   繁体   中英

how to get files from particular folder in windows 8 using windows store app programming?

如何使用Windows在C#中存储编程,在Windows 8中访问此路径“ AppData \\ Roaming \\ Microsoft \\ Windows \\ Recent”并从此路径“ AppData \\ Roaming \\ Microsoft \\ Windows \\ Recent”中获取文件

You can't access this location from a Windows Store app. These apps are running in a sandboxed environment and there's only a limited set of locations they can access. By default these are:

  • app install directory (inside c:\\Program Files\\WindowsApps\\ , your app's subfolder only)
  • app date locations (inside c:\\Users\\Username\\AppData\\Local\\Packages\\ , your app's subfolder only)
  • user's Downloads folder (only to files and folder's that your app created)

By requesting additional capabilities, you can access as well:

  • user's Documents library
  • user's Music library
  • user's Pictures library
  • user's Videos library
  • removable devices

By using FileOpenPicker or FolderPicker you can also access any files or folders the user selects.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM