Windows 8, Get list of drives
-
Hi guys... I'm just starting with Windows 8/Metro... I'm trying to figure out how to get a list of drives on the machine. The MSDN says Environment.GetLogicalDrives should work or System.IO.Directory.GetLogicalDrives but I can't seem to find either. I assume the framework for Metro apps is limited similar to how Silverlight is a subset of the .Net libraries... Anyone have any idea how to do this?
-
Hi guys... I'm just starting with Windows 8/Metro... I'm trying to figure out how to get a list of drives on the machine. The MSDN says Environment.GetLogicalDrives should work or System.IO.Directory.GetLogicalDrives but I can't seem to find either. I assume the framework for Metro apps is limited similar to how Silverlight is a subset of the .Net libraries... Anyone have any idea how to do this?
You cannot enumerate drives using the WinRT APIs. You only have access to isolated storage or you can use the open/save file dialogs to allow the user to browse for a file/folder.