System Drive Info Using The FileSystemObject
Category:
System/APIType:
ApplicationsDifficulty:
IntermediateAuthor:
EthanVersion Compatibility: Visual Basic 6
More information:
This module uses the FileSystemObject to get System Drive info:
Number of Drives, Volume Name, Drive Type, Root Folder,
Serial Number, Total Byte Size, FreeSpace, Used Bytes,
ShareName, Drive Letter and FileSystem (the FileSystemObject requires a reference to the Microsoft Scripting Runtime library). The information is displayed WYSIWYG and can be saved as a bitmap file.
Print Preview, print setup, and print capabilities are also demonstrated. And when the form is resized the viewing area of the document is resized also.
Note: The document is designed to display one page (depending on font) to contain information on up to about 16 drives. If your System/Network contains more you'll need to code for an additional page(s).
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.
Download drivinfo.zip