|
Total Access Components Tour: System InformationThe System Information Control is a non-display control that makes it easy to retrieve computer and network specific information. You can place a control on a form and use its properties and methods to get information without using complicated Windows API calls. Additionally, the System Information Control provides information that is not available through the Windows API. Using the System Information ControlThe System Information control does not have any design time properties that you can set. Everything is retrieved through methods. Identifying Drive LettersSeveral of this control’s methods require the DriveLetter parameter. This parameter identifies the number of the drive for which you want information. This number is 0-based, meaning that the first drive on your system is drive 0. You can use these methods to determine the drives on your system. You should enumerate through all 26 numbers and check the return value. If you refer to an invalid drive number, the method you called triggers a VBA runtime error. Trap for the error and use the error condition to identify an invalid drive. System Information Properties
System Information Methods
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||