How to get Unique folders Id for system folders(Pragram files or x86) or for file path in storage folder in uwp ?

Praveen Char 1 Reputation point
2022-02-21T07:18:34.307+00:00

Will i get Unique id for System folders like program files or x86 using PickSingleFolderAsync in Storage Folders in UWP. If i get Unique Id for folders in different machines that would be helpful.

var picker = new Windows.Storage.Pickers.FolderPicker();
picker.ViewMode = Windows.Storage.Pickers.PickerViewMode.Thumbnail;
picker.SuggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.ComputerFolder;
picker.FileTypeFilter.Add("*");

            Windows.Storage.StorageFolder folder = await picker.PickSingleFolderAsync();

Relative Id will change in machine to machine ..

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,861 Reputation points
    2022-03-07T09:32:08.357+00:00

    Hello,
    Welcome to Microsoft Q&A!

    I have to say there is not such id for x86 folder and Program files, All available folder id were here for UWP platform. It looks does not contain Program files or x86 folder. If you do want this feature, please go a head post your requirement with windows feed back hub.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments