Windows 8 App and access to file system

mszubart picture mszubart · Nov 7, 2012 · Viewed 7.2k times · Source

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.

Answer

spender picture spender · Nov 7, 2012