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'd like to secure my (Java metro) webservice with a login. Here's how I'm
I'm writing a Windows 8 Metro app (client-server) and would like to allow my
var metroquery = (from metro in objCommon.Lst_Cities where (SqlMethods.Like(metro.CityNM, Mumbai) || SqlMethods.Like(metro.CityNM, Delhi )||
I am developing a metro ui application and I would like to use SQLite
I am quite new to Metro dev and I only hope I will be
In a Windows 8 Metro App I want the ListViewItems/Tiles to open a link
I am writing a metro app. This works: HttpClient client = new HttpClient(); var
I have a simple metro app contains a button, a label and a drop
I want to know whether Metro Applications developed using Visual Studio 11 Developer Preview

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.