You can get them all from System.IO.DriveInfo class. Iterate the GetDrives method and check Name and VolumeLabel properties. Note that you can only read VolumeLabel if drive IsReady (yes, it's a property).
No need to use the Scripting FileSystemObject when .Net library have native support for it. DriveInfo is new with .Net 2.0 though, so many .Net programmers used Scripting with earlier versions.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.