Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 8 App and access to file system

I'm at the beginning of my project and I wonder which technology I should use. In my little research I found WinRT API being kind of pleasant and I really like tile grid concept in UI.

The only problem is that my app will generate tons of data - important data - which I have to store somewhere on the local machine. By 'somewhere' I mean use of a different partition than the OS.

So, why not to try this simple code.

await Windows.Storage.PathIO.WriteTextAsync(@"d:\tests\test.txt", "Hello World");

Because E_ACCESSDENIED, that's why. Windows 8 slaps me in face screaming "Access Denied".

Is there any way I can store my data in a way I like or Win8 is too h4x0r proof?

And no, "Make a desktop application" is not a correct answer.

like image 266
mszubart Avatar asked Jan 20 '26 02:01

mszubart


1 Answers

All you need to know about file access and permissions in Windows Store Apps.

like image 191
spender Avatar answered Jan 21 '26 15:01

spender



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!