locked
How to get path to Shared Pictures folder

    Question

  • Since the SHGetSpecialFolderPathW call is now not allowed and Windows::Storage::KnownFolders::PicturesLibrary refers to the library not a specific folder, I was wonder how I might go about finding the path to the "Shared Pictures" or "My Pictures" directories?
    Thursday, June 7, 2012 9:26 PM

All replies

  • Hi Cameron,

    There is no good way to get this path. As you point out, the KnownFolders class can get you to the library, but there isn't a way to enumerate the directories which make up that library. You can read from the complete contents of the library. Writing to the root will go to whichever directory the user selected as the default. Typically this is "My Pictures", but the user can change this in Explorer.

    If the user wants to specifically use the shared folder the user can explicitly provide it via a picker.

    --Rob

    Friday, June 8, 2012 5:31 AM
    Owner