{"id":697,"date":"2017-03-17T14:56:24","date_gmt":"2017-03-17T14:56:24","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=570"},"modified":"2022-09-13T15:37:00","modified_gmt":"2022-09-13T14:37:00","slug":"working-with-files-os","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/files\/working-with-files-os","title":{"rendered":"Working With Files-OS"},"content":{"rendered":"<h4>\n\tSelect Folder<\/h4>\n<pre><code>\n\tStorageFolder Folder1 = await StorageFolder.GetFolderFromPathAsync(\"C:\\\\SomeFolder\");\n<\/code><\/pre>\n<h4>\n\tAccessing System Folders<\/h4>\n<p>Not all folders are accesible by Universal Windows Apps. To make a folder accesible to a UWP app, you can use FolderPermissions command line tool.<\/p>\n<p>E.g., give UWP apps access to c:\\test folder:<\/p>\n<p>FolderPermissions c:\\test -e<\/p>\n<p><em>Note this will work only with native Win32 apis for eg. CreateFile2 and not with WinRT apis like StorageFolder, StorageFile etc.<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Select Folder StorageFolder Folder1 = await StorageFolder.GetFolderFromPathAsync(&#8220;C:\\\\SomeFolder&#8221;); Accessing System Folders Not all folders are accesible by Universal Windows Apps. To make a folder accesible to a UWP app, you can use FolderPermissions command line tool. E.g., give UWP apps access to c:\\test folder: FolderPermissions c:\\test -e Note this will work only with native Win32 apis [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[135],"tags":[],"class_list":["post-697","post","type-post","status-publish","format-standard","hentry","category-files"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=697"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/697\/revisions"}],"predecessor-version":[{"id":1178,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/697\/revisions\/1178"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}