The System.IO.DriveInfo
Class
Similarly to System.IO.DirectoryInfo
, System.IO.DriveInfo
provides access to drives information. Using this class is straightforward; it provides information on the disk type, disk space (free and total), volume label, and other self-explanatory properties that you can discover with IntelliSense. The following example shows how you can create an instance of the class and retrieve information on the specified drive:
Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.