Storages & Files DriveType
DriveType read-only property

Returns a numeric value which indicates the drive type.


variable = object.DriveType

The returned values are also defined as constants in the provided include files for ASP:

Value Constant Description
0 cDriveUnknown Unknown drive type
2 cDriveRemovable Removable drive (any except CDROM/DVD)
3 cDriveFixed Fixed - hard disk.
4 cDriveRemote Remote - mapped network drive.
5 cDriveCDROM CD/DVD drive
6 cDriveRamDisk RAM disk


Note that querying this property may require the drive to be ready (Removable drives). If the drive is not ready the user will be asked.

Applies to: SFDrive object

Supported on:

Windows 95/NT and later
Windows CE 3.0 and later
Pocket PC/Windows Mobile 2003 and later
Windows CE.NET 4 and later


newObjects Copyright 2001-2006 newObjects [ ]