|
Determining Free Disk Space in Win95/Win98 with GetDiskFreeSpace
|
Total Hit (868) |
The routine presented here to determine a drive's available disk space will return incorrect results on volumes over 2 gigabytes, as supported by the FAT32 partitions implemented in Windows95 OEM Service Pack 2, Windows 98 (without FAT32 conversion) and NT4. See the comments section following the co
....Read More |
Rating
|
|
|
Determining Free Disk Space on a Fat32 (or NTFS) Drive
|
Total Hit (1831) |
The routine presented here will return the correct free and used disk sizes on volumes over 2 gigabytes as supported by the FAT32 partitions implemented in Windows95 OEM Service Pack 2, aka OSR2, and in Windows 98 where the Fat32 drive conversion has been made, or on NTFS partitions on NT4, Windows
....Read More |
Rating
|
|
|
Determining if a Floppy Drive is Ready
|
Total Hit (1259) |
Visual Basic provides a few ways to test for the readiness of a removable drive both with intrinsic methods and with the assistance of the API. Each method has its advantages.
Most developers are familiar with the first method around since VB1 - performing a simple Dir() against the drive, trappin
....Read More |
Rating
|
|
|
|
|
|
|
Invoking Chkdsk using WMI
|
Total Hit (1281) |
Besides returning system information, the Windows Management Instrumentation classes also expose methods that can be called from VB. In addition, the WMI supports the executing of SQL-style calls to retrieve specific information.
|
Rating
|
|
|
Obtaining Logical Disk Information using WMI
|
Total Hit (1285) |
Windows Script Host is built into Microsoft Windows 98, 2000, ME and XP. If you are running Windows 95 or NT4, you can download Windows Script Host from the Microsoft Windows Script Technologies Web site at http://msdn.microsoft.com/scripting/. Some information is not returned on non-NT-based system
....Read More |
Rating
|
|
|
Using DeviceIoControl to Obtain Physical Drive Information
|
Total Hit (1847) |
Win NT/Win2000 developers have access to a unique API that provides low-level system information - DeviceIoControl.
This example succeeds only when it runs on Windows NT/Windows 2000/Windows XP, for two reasons:
«LI»The standard device input/output control codes are available only on Windows N
....Read More |
Rating
|
|
|
An API 'DriveExists' Routine
|
Total Hit (1287) |
For the API purest, here's a tiny function that simply returns True if a specified drive exists, or False if not.
Using GetLogicalDriveStrings, its a simple matter of retrieving all the available drives, then performing a case-insensitive Instr() against the result to determine if the passed drive
....Read More |
Rating
|
|
|
Using GetDiskFreeSpaceEx on 32-bit Windows
|
Total Hit (1403) |
This page presents four key wrapper routines for the data returned by the GetDiskFreeSpaceEx API. It works on both Win95 and Win95 OSR2, as well as Win98, NT4 Windows 2000 and Windows XP. By checking for the proc address of the GetDiskFreeSpaceExA API in kernel32.dll, which will only return a valid
....Read More |
Rating
|
|