These constants are only available when your project has an explicit reference to the appropriate type library containing these constant definitions. For VBScript, you must explicitly declare these constants in your code.
Constant
Value
Description
Unknown
0
Drive type can't be determined.
Removable
1
Drive has removable media. This includes all floppy drives and many other varieties of storage devices.
Fixed
2
Drive has fixed (nonremovable) media. This includes all hard drives, including hard drives that are removable.
Remote
3
Network drives. This includes drives shared anywhere on a network.
CDROM
4
Drive is a CD-ROM. No distinction is made between read-only and read/write CD-ROM drives.
RAMDisk
5
Drive is a block of Random Access Memory (RAM) on the local computer that behaves like a disk drive.