Posts

Showing posts with the label Raspberry Pi
Share:

Windows 10 IoT Applications With UWP C# | Raspberry Pi | Amit Padhiyar | Saatody

How To Get Removable Devices? Before using this code, You need to enable (check) Removable Storage in Capabilities (in Package.appxmanifest). Warning : Due to async and await keywords, The debugger might not receive some values at breakpoints.  StorageFolder Instance = KnownFolders.RemovableDevices; This how you can get Removable Devices. How To Get List Of Removable Devices? StorageFolder Instance = KnownFolders.RemovableDevices; IReadOnlyList<StorageFolder> Devices = await Instance.GetFoldersAsync(); How To Get Removable Devices By Array Index? Get devices using array index like Devices[0] indicate first device for example "C:", Devices[1] indicate second device for example "D:". If index out of range then it will gives you exception. StorageFolder Instance = KnownFolders.RemovableDevices; IReadOnlyList<StorageFolder> Devices = await Instance.GetFoldersAsync(); StorageFolder Device = Devices[0]; How To Get All Directories And All Files From Current Pat