Get the list of logical drives on a system
By [)ia6l0 iii
The following snippet returns the list of logical drives on a system.
The GetLogicalDrives returns a string array that contains the list of logical drives.
string[] logicalDrives = Environment.GetLogicalDrives();
Related FAQs
Use the Environment class to get important and user-specific properties like the User Profile folder.
Get the list of logical drives on a system (839 Views)