Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6746589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:20:27+00:00 2026-05-26T12:20:27+00:00

In metro, the codes like following will throw exception : String fileName = @C:\Test\dd\ccc.jpg;

  • 0

In metro, the codes like following will throw exception:

String fileName = @"C:\Test\dd\ccc.jpg";
StorageFile file = await StorageFile.GetFileFromPathAsync(fileName);

However even if I check everything in capabilities, also File Picker was added and all file types allowed. I still can’t access this file, the same exception will be thrown.

Does someone know how to read file in arbitrary file path? Is that possible in metro style application.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:20:27+00:00Added an answer on May 26, 2026 at 12:20 pm

    Not possible. You can get to the Libraries – pictures, documents, videos – and if the user puts that folder into one of those libraries (using Windows Explorer on the desktop side) you’re all set. You can even write a desktop exe that will put the folder into the library, but you can’t launch that exe yourself or be sure that the user hasn’t changed the libraries by hand.

    Look up SHCreateItemInKnownFolder for a starting point to the shell APIs for library work. I haven’t tried calling those APIs from the Metro side; you can see if they help but my bet is they will not be available. If you don’t like the COM interop to the shell APIs you could look at the source code to the Windows API Code Pack – I wouldn’t want to bundle all of it with a Metro app, but you could copy parts of it to your application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a file that contains the following in a csv file; country,region,city,postalCode,metroCode,areaCode I
I have a CSV file from the US Census that looks like this: ZIP5,ZIP4,ZIP9,STATE
I'm building a Windows 8 Metro style app and I'd like to style the
I am developing a metro ui application and I would like to use SQLite
var metroquery = (from metro in objCommon.Lst_Cities where (SqlMethods.Like(metro.CityNM, Mumbai) || SqlMethods.Like(metro.CityNM, Delhi )||
I can easily create a BitmapImage from a resource JPG image file using the
I am working on a zooming square navigation project (visually like Windows Metro, but
The C# samples and source code I've seen for Win8 Metro-style apps use storyboard
Basically the question is how do I run gpgpu code in a Metro app.
Can an Metro Windows 8 Application contain inline Assembler? Also is Metro C++ Native,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.