how to get the public documents libraries on metro application
-
13 Maret 2012 10:43By using the method "KnownFolders::DocumentsLibrary" I can access [my documents] path like "C:\Users\win8_user\Documents" and write the certain file in it.
But now I want to access the [public documents] path like "C:\Users\Public\Documents" then write a .xml file in it in order to provide a path for the other metro applications to access the file (which was not on a user level but open to the public).
- Diedit oleh Yongwei Yao 14 Maret 2012 8:08
Semua Balasan
-
13 Maret 2012 21:12Moderator
There is no separate Public Documents Library. There is just a Documents Library which contains a merged view of the user's private documents and the public documents.
If you look at the properties on the Documents library in Explorer you will see a list of the folders contained in the library.
The same applies to Music, Videos, and Pictures.
--Rob
- Disarankan sebagai Jawaban oleh Rob CaplanMicrosoft Employee, Moderator 13 Maret 2012 21:13
- Ditandai sebagai Jawaban oleh Bob_BaoMVP, Moderator 10 April 2012 3:45
-
14 Maret 2012 5:07
Unless the user has changed the default save location for the documents library to the public folder this is not possible.
Generally the system does not want metro style apps to create private communication mechanisms with eachother. Instead the system provided contracts (shared, launch, file picking, contact picking) should be used.
Chris
- Ditandai sebagai Jawaban oleh Bob_BaoMVP, Moderator 10 April 2012 3:45